Error: Discourse + NGINX as reverse proxy + Docker => TOO_MANY_REDIRECTS

Hi all,

I need to move my Docker based Discourse server from one host to another. There is a guide that I followed. No problem there.

I stopped Discourse on the old server, synced the files to the new server and tried to setup the new server using the existing “app.yml” file with “./discourse-setup”. I also tried “./launcher rebuild app”. There are no errors.

I use NGINX as reverse proxy with SSL (incoming). Discourse is connected by NGINX not using SSL. The published port of the Discourse container is 80.

In NGINX a host name is registered with SSL and port 443 for Discourse with Redirection.

When I access the Discourse platform through a browser I get “TOO_MANY_REDIRECTS”.

That’s it. - This problem did not exist on the old server. I copied the Discourse and NGINX config from there.

I also tried to do a clean setup with “./docker-setup” and empty host volume. But with the same result: TOO_MANY_REDIRECTS.

Any ideas?