add docker deployment stack and vps setup docs
This commit is contained in:
parent
d301c7b4f3
commit
1fccb16dba
8 changed files with 544 additions and 0 deletions
39
deployment/docker/nginx.conf
Normal file
39
deployment/docker/nginx.conf
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue