no socket for proxy
This commit is contained in:
parent
a439d15754
commit
be8dbee0e5
@ -5,7 +5,7 @@ After=network.target
|
||||
[Service]
|
||||
WorkingDirectory=/var/www/ffplayout/ffplayout
|
||||
Environment=DJANGO_SETTINGS_MODULE=ffplayout.settings.production
|
||||
ExecStart=/var/www/ffplayout/venv/bin/gunicorn --workers 4 --worker-class=gevent --timeout 3600 --log-level=info --log-file=- --access-logfile=- --bind unix:/var/www/ffplayout/ffplayout/ffplayout.sock ffplayout.wsgi:application
|
||||
ExecStart=/var/www/ffplayout/venv/bin/gunicorn --workers 4 --worker-class=gevent --timeout 10800 --log-level=info --log-file=- --access-logfile=- --bind 127.0.0.1:8001 ffplayout.wsgi:application
|
||||
KillMode=process
|
||||
User=www-data
|
||||
Group=www-data
|
||||
|
@ -15,7 +15,7 @@ server {
|
||||
|
||||
charset utf-8;
|
||||
|
||||
client_max_body_size 7000M; # should be desirable value
|
||||
client_max_body_size 7000M; # should be desirable value
|
||||
|
||||
add_header X-Frame-Options SAMEORIGIN;
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
@ -53,7 +53,15 @@ server {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_pass http://unix:/var/www/ffplayout/ffplayout/ffplayout.sock;
|
||||
proxy_read_timeout 36000s;
|
||||
proxy_connect_timeout 36000s;
|
||||
proxy_send_timeout 36000s;
|
||||
proxy_buffer_size 128k;
|
||||
proxy_buffers 4 256k;
|
||||
proxy_busy_buffers_size 256k;
|
||||
send_timeout 36000s;
|
||||
proxy_pass http://127.0.0.1:8001;
|
||||
|
||||
}
|
||||
|
||||
location /static/ {
|
||||
|
Loading…
x
Reference in New Issue
Block a user