Skip to content
Snippets Groups Projects
Commit d620d621 authored by Lucca Santangelo's avatar Lucca Santangelo
Browse files

file size and static files

parent 931c85e3
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,8 @@ events { ...@@ -8,6 +8,8 @@ events {
} }
http { http {
client_max_body_size 500M;
map $http_upgrade $connection_upgrade { map $http_upgrade $connection_upgrade {
default Upgrade; default Upgrade;
'' close; '' close;
...@@ -39,6 +41,17 @@ http { ...@@ -39,6 +41,17 @@ http {
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
} }
location /static/ {
proxy_pass http://back:5000/static/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /api/ { location /api/ {
proxy_pass http://back:5000/api/; proxy_pass http://back:5000/api/;
proxy_http_version 1.1; proxy_http_version 1.1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment