Files
mikromon/deploy/nginx.conf
Mateusz Gruszczyński e8f6c4c609 push
2026-03-05 15:53:33 +01:00

25 lines
580 B
Nginx Configuration File

server {
listen 80;
server_name _;
location /static/ {
alias /app/static/;
add_header Cache-Control "public, max-age=31536000, immutable";
}
location /socket.io/ {
proxy_pass http://app:5000/socket.io/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
location / {
proxy_pass http://app:5000/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}