-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
重现步骤
系统通过https访问,https通过反向代理到archery
oidc登陆时,源地址是https://xxx.com,服务端获取到的重定向地址是http://xxx.com:9123/xxx,导致出现:无效参数 redirect_uri的错误,无法正常登录
进过排查,发现是archery 内置的nginx代理没有正确配置参数导致,如下图
X-Forwarded-Host 不应该配置nginx_port,以便正确获取上游host
X-Forwarded-Proto 不应该直接取$scheme,而应该从上游代理转发的变量获取:$http_X_Forwarded_Proto
这样可以正确获取到上游的源地址https://xxx.com

经过直接修改容器内的nginx.conf的配置,已确认问题修复
预期外的结果
oidc正常登录
日志文本
No response
版本
1.10.0
部署方式
Docker
是否还有其他可以辅助定位问题的信息?比如数据库版本等
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels