Files
20260512-skg-tk/deploy/nginx.conf

33 lines
825 B
Nginx Configuration File

server {
listen 80;
server_name _;
client_max_body_size 2g;
gzip on;
gzip_types text/plain text/css application/json application/javascript application/xml image/svg+xml;
location = /api {
return 308 /api/;
}
location /api/ {
proxy_pass http://api:4291/;
proxy_http_version 1.1;
proxy_request_buffering off;
proxy_buffering off;
proxy_set_header Host $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_read_timeout 1800s;
proxy_send_timeout 1800s;
proxy_connect_timeout 60s;
}
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
}
}