uwsgi-2
This commit is contained in:
parent
3f25594788
commit
819139c42a
@ -4,9 +4,12 @@ map $http_upgrade $connection_upgrade {
|
|||||||
}
|
}
|
||||||
|
|
||||||
upstream django {
|
upstream django {
|
||||||
server localhost:8080;
|
# server localhost:8080;
|
||||||
|
server unix:///home/randomsec/Randomsec/uwsgi-file/muor.sock
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
if ($host = randomsec.projektstudencki.pl) {
|
if ($host = randomsec.projektstudencki.pl) {
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
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;
|
include /etc/nginx/uwsgi_params;
|
||||||
uwsgi_pass django;
|
uwsgi_pass django;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ 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
|
socket=/home/randomsec/RandomSec/uwsgi-file/muor.sock
|
||||||
buffer-size=32768
|
buffer-size=32768
|
||||||
plugins = python3
|
plugins = python3
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user