[Fixed]-Django Admin hangs with nginx port 443

1👍

You’re informing django how to detect if request is done via https, but you don’t have proper header set in your nginx file. Try to add:

proxy_set_header X-Forwarded-Proto $scheme;

into location section in nginx config.

Also, you don’t have to estabilish secured connection between gunicorn and nginx. They are communicating in localhost and there is nothing that could potentially sniff that communication (except of stuff on your own server, but those able to sniff localhost connection, can also access your certs and decrypt https). If you want to set that connection secured (because for example not only you have access to that server), use unix sockets and proper access rights.

Leave a comment