These are chat archives for spring-cloud/spring-cloud

2nd
Aug 2016
Dreampie
@Dreampie
Aug 02 2016 09:56
if repository extends QueryDslPredicateExecutor how can use native sql? @dsyer
ccit-spence
@ccit-spence
Aug 02 2016 20:51
I am trying to make zuul as a proxy for frontend ui and api. I want to be able to have /** forward to a ui service. Currently I have a controller set to forward /** -> /ui/** the ui service is at ui-service. The problem is none of the static js resources are working. Is there a trick for the static resources? I have tried stripping the prefix and not stripping the prefix.
KenavR
@KenavR
Aug 02 2016 20:52
Hi I have a micro service setup using (zuul, eureka,...). One of my services sets a cookie and then redirects, but it looks like the cookie doesn't reach the front end, do I need to configure zuul to pass the cookie through? thanks
ccit-spence
@ccit-spence
Aug 02 2016 20:52
Using Eureka as service discovery
Dave Syer
@dsyer
Aug 02 2016 21:04
@ccit-spence I don't know of any problem with the architecture. I'm pretty sure you will find samples that have static UI assets in a back end service.
ccit-spence
@ccit-spence
Aug 02 2016 21:09
@dsyer I know it is possible, I have done it. I might be getting old. I will play with it some more later tonight. Just making sure nothing changed to cause a problem. I have this setup working with Consul as the service discovery and when I switched to Eureka it stopped. Might have missed something during the switch.
The sample I did see involved setting a url http://localhost:xxxx as the ui. Mine is Eureka so not using that. Using path: /ui/**
KenavR
@KenavR
Aug 02 2016 21:17
solved my problem by setting "sensitiveHeaders" (random value to overwrite the default values) in my zuul configuration.
Dave Syer
@dsyer
Aug 02 2016 21:19
@KenavR thanks for the update. You can set it to empty (no need for randomness).
KenavR
@KenavR
Aug 02 2016 21:20
ah ok thanks