This commit is contained in:
makram89 2022-01-30 17:18:02 +01:00
parent dd7ef6f600
commit e30255f504
4 changed files with 8 additions and 5 deletions

View File

@ -46,15 +46,17 @@ server {
}
location /logout/ {
proxy_pass http://django;
uwsgi_pass django;
include /etc/nginx/uwsgi_params;
}
# Finally, send all non-media requests to the Django server.
location / {
if ($cookie_sessionid = ""){
# proxy_pass http://django; # TODO prolly change that to uwsgi_pass
include /etc/nginx/uwsgi_params;
uwsgi_pass django;
include /etc/nginx/uwsgi_params;
}
}

View File

@ -1,8 +1,8 @@
if ($cookie_sessionid = ""){
# proxy_pass http://django; # TODO prolly change that to uwsgi_pass
include /etc/nginx/uwsgi_params;
uwsgi_pass django;
include /etc/nginx/uwsgi_params;
}
}

View File

@ -45,7 +45,8 @@ server {
}
location /logout/ {
proxy_pass http://django;
uwsgi_pass django;
include /etc/nginx/uwsgi_params;
}
# Finally, send all non-media requests to the Django server.

View File

@ -1,5 +1,5 @@
[uwsgi]
chdir=/home/randomsec/RandomSec/MUOR/MUOR
chdir=/home/randomsec/RandomSec/MUOR/
module=MUOR.wsgi
master=True
pidfile=/home/randomsec/uwsgi-file/project-master.pid