Shortened the nginx proxy timeouts.

master
Pacman Ghost 4 years ago
parent d6b61aabc5
commit 2f3ceefd30
  1. 6
      web/docker/nginx-default.conf

@ -12,7 +12,13 @@ server {
location /api { location /api {
proxy_pass http://flask:5000 ; proxy_pass http://flask:5000 ;
rewrite ^/api/(.*) /$1 break ; rewrite ^/api/(.*) /$1 break ;
# NOTE: The frontend and backend containers will be running on the same host. If we can't connect
# within a few seconds, something's wrong and there's nothing to be gained by having longer timeouts.
proxy_connect_timeout 10 ;
proxy_read_timeout 10 ;
proxy_send_timeout 10 ;
} }
location /user { location /user {
proxy_pass http://flask:5000 ; proxy_pass http://flask:5000 ;
rewrite ^/user/(.*) /user-files/$1 break ; rewrite ^/user/(.*) /user-files/$1 break ;

Loading…
Cancel
Save