Issues when enabling SSL/https protocol with IdentityServer4 running besides Nginx web server.
OpenId Connect discovery specification endpoint https://authserver.xxxxxxxxxxx.com/.well-known/openid-configuration returns wrong protocol. Refer to the screenshot on the right, it returns endpoints with HTTP protocol instead of HTTPS.
To resolve this issue, we need to apply the server Url in PubicOrigin configuration in IdentityServer options as mentioned in the screenshot below.