Open Closed

Configuring identity server to work behind a HTTPS proxy #153


User avatar
0
terrycullen created

Hi,

I've got a stock instance of ABP Commercial running in a docker container on port 80. I've got another docker container running Caddy (HTTPS web server) which proxies the web requests to ABP.

It all works fine except that identity server doesn't know that the app is running with HTTPS (port 443) so the discovery document ( https://stage.example.com.au/.well-known/openid-configuration ) is incorrect as it shows HTTP (not HTTPS) based links.

I've read that you can configure identity server to either use the X-Forwarded-For header to determine the protocol or use an explicit configuration value to set the HTTPS links (https://github.com/IdentityServer/IdentityServer4/issues/1331) but I can't see where I'd go about configuring that in ABP.

Terry


1 Answer(s)
  • User Avatar
    1
    liangshiwei created
    Support Team Fullstack Developer

    Hi @terrycullen,

    Try to add to the module OnApplicationInitialization method :

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11