I'm running my DJango app using uwsgi over nginx. it's currently working with these configurations:
[uwsgi] socket = :8002
master = true
env = DJANGO_SETTINGS_MODULE=web_server.web_server.settings
pythonpath = /tmp/src/
wsgi-file = /tmp/src/web_server/web_server/wsgi.py
chdir = /tmp/src/
processes = 4
threads = 2
and my nginx.conf file
upstream django {
server 127.0.0.1:8002;
}
server {
listen 8000;
server_name 192.168.56.104;
charset utf-8;
# Finally, send all non-media requests to the Django server.
location / {
uwsgi_pass django; include /tmp/src/web_server/web_server/uwsgi_params;
}
it's working with http.
I want to change it to work with https, but I can't find the right to configuration to make that work anywhere.
What should I change in my configuration in order to work with https?
I already have generated the certificate .