Return https in prod
Closed this issue ยท 6 comments
I think setting SECURE_PROXY_SSL_HEADER
may fix this.
ref link: https://docs.djangoproject.com/en/5.0/ref/settings/#secure-proxy-ssl-header
Started working on this one
@buckyroberts @MAbdurrehman1 implemented here #140 and deployed
@MAbdurrehman1 thank you for the tip
@dmugtasimov Great Work ๐
Question: In order to test it locally, did you run your local setup on HTTPS? If yes, then how? via ngrok or setting up guicorn locally or by some other way?
@MAbdurrehman1 Locally I just tested that non-HTTPs access return non-HTTPs URLs. Then I checked nginx configuration in production for specifying the required header, deployed to production and tested it in production.
btw, we are using daphne
in production. There is run-daphne
Makefile target if you are interested
@dmugtasimov Sounds great!
Thank you.