forked from 0x2620/pandora
90 seconds timeout
This commit is contained in:
parent
5a4d45f82b
commit
ccddcae5e5
2 changed files with 6 additions and 3 deletions
|
@ -16,7 +16,9 @@ script
|
|||
test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $USER:$USER /var/log/pandora)
|
||||
cd $VENV/pandora
|
||||
exec /usr/bin/sudo -u $USER $VENV/bin/gunicorn_django \
|
||||
-b 127.0.0.1:2620 \
|
||||
--bind 127.0.0.1:2620 \
|
||||
--timeout 90 \
|
||||
--log-level info --log-file /var/log/pandora/pandora.log \
|
||||
-w5 $VENV/pandora/settings.py
|
||||
--workers 5 \
|
||||
$VENV/pandora/settings.py
|
||||
end script
|
||||
|
|
|
@ -26,7 +26,8 @@ server {
|
|||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_redirect off;
|
||||
|
||||
proxy_read_timeout 90; #should be in sync with gunicorn timeout
|
||||
proxy_connect_timeout 90; #should be in sync with gunicorn timeout
|
||||
if (!-f $request_filename) {
|
||||
proxy_pass http://127.0.0.1:2620;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue