cs141135
4 years ago
1 changed files with 0 additions and 26 deletions
@ -1,26 +0,0 @@ |
|||||
upstream app_server { |
|
||||
server flask:5000; |
|
||||
} |
|
||||
|
|
||||
server { |
|
||||
listen 80; |
|
||||
server_name _; |
|
||||
error_log /var/log/nginx/error.log; |
|
||||
access_log /var/log/nginx/access.log; |
|
||||
client_max_body_size 64M; |
|
||||
|
|
||||
location / { |
|
||||
try_files $uri @proxy_to_app; |
|
||||
} |
|
||||
|
|
||||
location @proxy_to_app { |
|
||||
gzip_static on; |
|
||||
|
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
||||
proxy_set_header X-Forwarded-Proto $scheme; |
|
||||
proxy_set_header Host $http_host; |
|
||||
proxy_buffering off; |
|
||||
proxy_redirect off; |
|
||||
proxy_pass http://app_server; |
|
||||
} |
|
||||
} |
|
Loading…
Reference in new issue