|
|
|
@ -12,7 +12,13 @@ server { |
|
|
|
|
location /api { |
|
|
|
|
proxy_pass http://flask:5000 ; |
|
|
|
|
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 { |
|
|
|
|
proxy_pass http://flask:5000 ; |
|
|
|
|
rewrite ^/user/(.*) /user-files/$1 break ; |
|
|
|
|