Docker Identityserver4 openid配置忽略运行nginx反向代理的主机端口
我正在Windows中使用docker在Nginx反向代理后面设置Identity server4。它在myhost:5000上正常运行。但当访问时,会得到以下响应 端口号缺失但在开发环境中工作(即:) 我尝试了以下Identity server选项IssuerUri和PublicOrigin,但响应仍然相同 是否有其他解决方案可以获得端口号的响应Docker Identityserver4 openid配置忽略运行nginx反向代理的主机端口,docker,nginx,asp.net-core-2.0,identityserver4,Docker,Nginx,Asp.net Core 2.0,Identityserver4,我正在Windows中使用docker在Nginx反向代理后面设置Identity server4。它在myhost:5000上正常运行。但当访问时,会得到以下响应 端口号缺失但在开发环境中工作(即:) 我尝试了以下Identity server选项IssuerUri和PublicOrigin,但响应仍然相同 是否有其他解决方案可以获得端口号的响应 谢谢我也正面临着这个问题。 您需要在nginx的主机头中添加端口。 proxy\u set\u头主机$Host:$server\u端口 { "is
谢谢我也正面临着这个问题。
您需要在nginx的主机头中添加端口。
proxy\u set\u头主机$Host:$server\u端口代码>
{
"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,
}