Skip to content

Commit

Permalink
more workers, explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
csae8092 committed Nov 5, 2024
1 parent e707d50 commit 40f61cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions nginx.default
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@ server {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
add_header 'Access-Control-Allow-Origin' '*';
# Set timeouts
proxy_connect_timeout 60s; # Time to wait for a connection
proxy_send_timeout 60s; # Time to wait for data to be sent to the proxied server
proxy_read_timeout 60s; # Time to wait for data to be read from the proxied server
}
}
2 changes: 1 addition & 1 deletion start-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ python manage.py collectstatic --no-input
./download_files.sh
python manage.py find_duplicated_persons
python manage.py find_duplicated_places
gunicorn pmb.wsgi --user www-data --bind 0.0.0.0:8010 --workers 1 --timeout 600 & nginx -g "daemon off;"
gunicorn pmb.wsgi --user www-data --bind 0.0.0.0:8010 --workers 3 --timeout 30 & nginx -g "daemon off;"

0 comments on commit 40f61cb

Please sign in to comment.