50 lines
1011 B
Plaintext
50 lines
1011 B
Plaintext
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
ssl_certificate /etc/nginx/certs/pistation.crt;
|
|
ssl_certificate_key /etc/nginx/certs/pistation.key;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_session_cache shared:pistation:4m;
|
|
|
|
client_max_body_size 0;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $http_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 https;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
proxy_read_timeout 1h;
|
|
proxy_send_timeout 1h;
|
|
|
|
server {
|
|
listen 3443 ssl;
|
|
http2 on;
|
|
server_name _;
|
|
|
|
location / {
|
|
proxy_pass http://web:3000;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 8443 ssl;
|
|
http2 on;
|
|
server_name _;
|
|
|
|
location / {
|
|
proxy_pass http://server:8080;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 7443 ssl;
|
|
server_name _;
|
|
|
|
location / {
|
|
proxy_pass http://host.docker.internal:7880;
|
|
}
|
|
}
|