22 lines
640 B
Plaintext
22 lines
640 B
Plaintext
# Location blocks for the security-command.org server block, which also holds
|
|
# the TLS settings. The upstream port matches BACKEND_PORT in .env.
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8380;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
location = /ws {
|
|
proxy_pass http://127.0.0.1:8380;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_read_timeout 120s;
|
|
proxy_send_timeout 120s;
|
|
proxy_buffering off;
|
|
}
|