Skip to content

Commit

Permalink
fix: nginx default.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
TomBursch committed Aug 29, 2023
1 parent 7dfc995 commit b0a05e1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ server {

location / {
client_max_body_size 32M;
try_files $uri $uri/ =404;
try_files $uri $uri/ @redirect;
}
location @redirect {
return 301 "/#/404";
}
location /api/ {
include uwsgi_params;
Expand All @@ -22,9 +25,17 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
uwsgi_buffering off;
uwsgi_pass ${BACK_URL};
}
}
server {
listen 9100;
location /metrics/ {
include uwsgi_params;
uwsgi_pass ${BACK_URL};
}
}

0 comments on commit b0a05e1

Please sign in to comment.