简体   繁体   English

Keycloak behind Nginx Proxy with Http 端口不是80

[英]Keycloak Behind Nginx Proxy with Http Port is not 80

So my nginx is configured like image below所以我的 nginx 配置如下图

nginx 配置

so when i set the PROXY_ADDRESS_FORWARDING to TRUE , it would be redirect to https://example.org:8080所以当我将PROXY_ADDRESS_FORWARDING设置为TRUE时,它将重定向到https://example.org:8080

what should i config on the Keycloak so it could redirect correctly?我应该在 Keycloak 上配置什么才能正确重定向?

Well, your question here is not very clear to say the least.好吧,至少可以说你的问题不是很清楚。 But since you are having problems with nginx proxy I would suggest you set proxy_set_header Host $host;但是由于您在使用 nginx 代理时遇到问题,我建议您设置proxy_set_header Host $host; in your nginx conf, this way nginx will not override the Host header when proxying.在您的 nginx conf 中,这样 nginx 在代理时不会覆盖主机 header。 If that does not solve your problem, please provide more information about you what you want to achieve and what's going wrong.如果这不能解决您的问题,请提供更多关于您想要实现的目标以及出了什么问题的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM