Commit 58a678b7 authored by jkvis's avatar jkvis

Gunicorn timeouts

parent f432e91f
......@@ -18,11 +18,15 @@ server {
ssl_prefer_server_ciphers on;
client_max_body_size 500G;
keepalive_timeout 300;
keepalive_timeout 900;
access_log {{nginx_log_dir}}/default.access.log;
location ~ ^/transfers/(.+)/uploads {
proxy_connect_timeout 900;
proxy_read_timeout 900;
proxy_send_timeout 900;
upload_pass @upstream;
upload_resumable off;
......@@ -44,9 +48,9 @@ server {
}
location @upstream {
proxy_connect_timeout 300s;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
proxy_connect_timeout 900;
proxy_read_timeout 900;
proxy_send_timeout 900;
proxy_pass http://127.0.0.1:8001;
}
......
......@@ -6,7 +6,7 @@ After=network.target
[Service]
PIDFile=/run/transfer/transfer.pid
WorkingDirectory=/srv/transfer
ExecStart=/srv/transfer/virtualenv/bin/gunicorn -w 2 --pid /run/transfer/transfer.pid transfer:app
ExecStart=/srv/transfer/virtualenv/bin/gunicorn --timeout 900 --workers 3 --pid /run/transfer/transfer.pid transfer:app
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
Environment=TRANSFER_CONFIG=/srv/transfer/config.py
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment