Files
StikeArena_chrt/nginx/nginx.conf
T
2026-06-02 18:01:57 +05:00

39 lines
931 B
Nginx Configuration File

server {
listen 80;
server_name _;
client_max_body_size 64m;
location = /health {
access_log off;
return 200 "ok\n";
add_header Content-Type text/plain;
}
location / {
proxy_pass http://app:3000;
proxy_http_version 1.1;
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_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 60s;
proxy_connect_timeout 10s;
}
location ~* \.(css|js|mjs|png|jpg|jpeg|gif|webp|svg|ico|woff|woff2)$ {
proxy_pass http://app:3000;
proxy_http_version 1.1;
proxy_set_header Host $host;
expires 30d;
add_header Cache-Control "public, immutable";
}
}