islandflow/deployment/docker/nginx.conf
2026-04-03 22:10:35 -04:00

39 lines
853 B
Nginx Configuration File

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
server_name _;
client_max_body_size 16m;
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;
location = /health {
proxy_pass http://api:4000/health;
}
location ^~ /ws/ {
proxy_pass http://api:4000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
}
location ~ ^/(prints|nbbo|quotes|candles|joins|dark|flow|replay)/ {
proxy_pass http://api:4000;
proxy_http_version 1.1;
}
location / {
proxy_pass http://web:3000;
proxy_http_version 1.1;
}
}