Remove the 'X-Forwarded-Proto' line from the nginx config
The reason is that in the default configuration nginx is only serving 'http' traffic.
So if an upstream proxy sets the 'X-Forwarded-Proto' header, because it is terminating
TLS, then nginx will overwrite it to 'http'. This will cause django to think the page
is served via 'http' and it will not create 'https://...' URLs.

Related to #292
1 parent 03b3605 commit 5624ecc65eeeffc0f2cbed5aa99a3155e3c143db
@Christian Mäder Christian Mäder authored on 2 Jun 2020
Showing 2 changed files
View
.gitignore
View
docker/nginx.conf