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

14th
Oct 2016
Matan Shukry
@matanshukry
Oct 14 2016 02:30
so I made an authorization and a resource service (with oauth2 jwt), and everything is working. Now I'm trying to create a third service that will simply forward the authorization header to the other services (it's the zuul service).
I found online the spring reference for token relay: http://cloud.spring.io/spring-cloud-security/spring-cloud-security.html - but it seems to do the verification of the header as well (which I'm not sure why I would want to do that), and also require 'decrpyting' the token with /check_token endpoint . Anyone knows how to simply forward the header
Dave Syer
@dsyer
Oct 14 2016 06:07
Zuul forwards headers. You should be able to just set the sensitive headers and include "Authorization".
damozhiying
@damozhiying
Oct 14 2016 12:23
is there a way for zuul cache the js css images in local machine ,some time when these files big ,the zuul often time out
damozhiying
@damozhiying
Oct 14 2016 12:37
@dsyer do you know how to optimize the zuul ui gateway
Dave Syer
@dsyer
Oct 14 2016 12:38
Define "optimize"
damozhiying
@damozhiying
Oct 14 2016 12:42
when the size of css js images big the zuul ui gateway often time out ,the request more slower
Dave Syer
@dsyer
Oct 14 2016 12:43
I guess you can increase the timeouts
Or write custom filters
Caching would be better done in a higher layer IMO
damozhiying
@damozhiying
Oct 14 2016 12:46
@dsyer my idea is to cache these files in local after request or put these files in local,when request no need to the resouce server, is there any example
Dave Syer
@dsyer
Oct 14 2016 13:20
Not that I'm aware of
"local" could mean anything
and there are plenty of front end proxies that cache really efficiently
You'd be better off using one of those IMO, for performance.
damozhiying
@damozhiying
Oct 14 2016 14:35
@dsyer thanks a lot