gpt4 book ai didi

docker - Identityserver4 openid-configuration省略运行nginx反向代理的主机端口

转载 作者:行者123 更新时间:2023-12-02 18:21:08 24 4
gpt4 key购买 nike

我正在Windows中使用docker在Nginx反向代理后面设置Identity Server4。它在myhost:5000上正常运行。但是当访问http://myhost:5000/.well-known/openid-configuration时得到以下响应
缺少端口号但在开发环境中有效的端口(即:http://localhost:5000)

{
"issuer":"http://myhost",
"jwks_uri":"http://myhost/.well-known/openid-configuration/jwks",
"authorization_endpoint":"http://myhost/connect/authorize",
"token_endpoint":"http://myhost/connect/token",
"userinfo_endpoint":"http://myhost/connect/userinfo",
"end_session_endpoint":"http://myhost/connect/endsession",
"check_session_iframe":"http://myhost/connect/checksession",
"revocation_endpoint":"http://myhost/connect/revocation",
"introspection_endpoint":"http://myhost/connect/introspect",
"frontchannel_logout_supported":true,
"frontchannel_logout_session_supported":true,
"backchannel_logout_supported":true,
"backchannel_logout_session_supported":true,
}

我已尝试遵循身份服务器选项 IssuerUri PublicOrigin ,但响应仍然相同。

还有其他解决方案来获取带有端口号的响应吗?

谢谢

最佳答案

我也正面临这个问题。
您将需要在nginx的Host header 中添加端口。proxy_set_header Host $host:$server_port;
Original Source

关于docker - Identityserver4 openid-configuration省略运行nginx反向代理的主机端口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52555915/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com