uwsgi
This commit is contained in:
parent
6c078fda8b
commit
c39ad275ff
@ -50,8 +50,11 @@ server {
|
|||||||
# Finally, send all non-media requests to the Django server.
|
# Finally, send all non-media requests to the Django server.
|
||||||
location / {
|
location / {
|
||||||
if ($cookie_sessionid = ""){
|
if ($cookie_sessionid = ""){
|
||||||
proxy_pass http://django; # TODO prolly change that to uwsgi_pass
|
# proxy_pass http://django; # TODO prolly change that to uwsgi_pass
|
||||||
|
include /etc/nginx/uwsgi_params;
|
||||||
|
uwsgi_pass django;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/randomsec.projektstudencki.pl/fullchain.pem; # managed by Certbot
|
ssl_certificate /etc/letsencrypt/live/randomsec.projektstudencki.pl/fullchain.pem; # managed by Certbot
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
if ($cookie_sessionid = ""){
|
if ($cookie_sessionid = ""){
|
||||||
proxy_pass http://django; # TODO prolly change that to uwsgi_pass
|
# proxy_pass http://django; # TODO prolly change that to uwsgi_pass
|
||||||
|
include /etc/nginx/uwsgi_params;
|
||||||
|
uwsgi_pass django;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,8 +1,13 @@
|
|||||||
[uwsgi]
|
[uwsgi]
|
||||||
chdir=/home/randomsec/RandomSec/MUOR
|
chdir=/home/randomsec/RandomSec/MUOR/MUOR
|
||||||
module=MUOR.wsgi:application
|
module=MUOR.wsgi
|
||||||
master=True
|
master=True
|
||||||
pidfile=/home/randomsec/project-master.pid
|
pidfile=/home/randomsec/uwsgi-file/project-master.pid
|
||||||
vacuum=True
|
vacuum=True
|
||||||
max-requests=5000
|
max-requests=5000
|
||||||
daemonize=/home/randomsec/RandomSec/log/logs.log
|
daemonize=/home/randomsec/RandomSec/log/logs.log
|
||||||
|
socket=0.0.0.0:8080
|
||||||
|
buffer-size=32768
|
||||||
|
plugins = python3
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
Django
|
Django
|
||||||
django-crispy-forms
|
django-crispy-forms
|
||||||
docker
|
docker
|
||||||
|
uwsgi
|
Loading…
Reference in New Issue
Block a user