no socket for proxy

This commit is contained in:
jb-alvarado 2020-06-02 21:15:46 +02:00
parent a439d15754
commit be8dbee0e5
2 changed files with 11 additions and 3 deletions

View File

@ -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

View File

@ -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/ {