Does anyone have a working configuration for these four?
- Django
- uWSGI
- Nginx
- SSL
The main question is how to correctly set up SSL
for this? I've googled a lot, and still can't get it to work. I have a working set up for http
with unix sockets
, but that's as far as I could get.
There are some other answers posted, but they are mostly code snippets, and not a whole configuration.
This is basic nginx configuration that will work with SSL and will forward requests to uwsgi running on port 8000 (you can change this to socket if you want).
For advanced SSL settings check THIS.
I am new to nginx,uwsgi and ssl. Here shares my testing nginx and uwsgi config.
Basically, there are four steps to deploy Django only support SSL/HTTPS.
Config settings.py
Restart nginx and uwsgi