Files

29 lines
920 B
Plaintext

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
server_name localhost;
client_max_body_size 0;
proxy_http_version 1.1;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
proxy_request_buffering off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
location = / { return 302 /admin/; }
location = /admin { return 302 /admin/; }
location = /trace { return 302 /trace/; }
location /admin/ { proxy_pass http://api:5173; }
location /trace/ { proxy_pass http://api:5174; }
location / {
proxy_pass http://api:3000;
}
}