You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where Reverse proxy SSL could be Nginx/Apache thus Zuul and all microservices communications is under HTTP.
Basically Reverse proxy SSL add X-Forwarded-* headers on downstream like:
X-Forwarded-Host
X-Forwarded-Proto
X-Forwarded-Port
X-Forwarded-Prefix for context path
But when using properties zuul.add-proxy-headers to trueZuul does not care about these headers and my hostname will be transformed to localhost
In other hand if zuul.add-proxy-headers to false headers are correctly transmitted by X-Forwarded-Prefix becomes not reliable. Indeed X-Forwarded-Prefix will not be updated to correct context-path of the given microservices/routes.
May I miss something? Possible solution is to set zuul.add-proxy-headers to false and write my own ZuulFilter. If you think is not common case feel free to close issue. Could be dup of #352
The text was updated successfully, but these errors were encountered:
kakawait
changed the title
add-proxy-headers could be aware of X-Forwarded-* headers
Zuul add-proxy-headers could be aware of X-Forwarded-* headers
Jan 5, 2016
kakawait
changed the title
Zuul add-proxy-headers could be aware of X-Forwarded-* headers
Zuul add-proxy-headers could be aware of upstream X-Forwarded-* headers
Jan 5, 2016
It may possible the following problem is not an issue
Using following architecture
Where Reverse proxy SSL could be
Nginx
/Apache
thusZuul
and allmicroservices
communications is underHTTP
.Basically Reverse proxy SSL add
X-Forwarded-*
headers on downstream like:X-Forwarded-Host
X-Forwarded-Proto
X-Forwarded-Port
X-Forwarded-Prefix
for context pathBut when using properties
zuul.add-proxy-headers
totrue
Zuul
does not care about these headers and my hostname will be transformed tolocalhost
In other hand if
zuul.add-proxy-headers
tofalse
headers are correctly transmitted byX-Forwarded-Prefix
becomes not reliable. IndeedX-Forwarded-Prefix
will not be updated to correct context-path of the given microservices/routes.May I miss something? Possible solution is to set
zuul.add-proxy-headers
tofalse
and write my ownZuulFilter
. If you think is not common case feel free to close issue. Could be dup of #352The text was updated successfully, but these errors were encountered: