meson / [CiCADA] _proxy.conf

Last active 2 weeks ago

Like 0

meson revised this gist 2 weeks ago · a772798

1 file changed, 29 insertions

_proxy.conf (file created)
@@ -0,0 +1,29 @@
1 + # /etc/nginx/proxy-common.conf
2 + #
3 + # Shared proxy directives for reverse-proxy vhosts (Transmission, etc.).
4 + # Include inside location blocks that use proxy_pass.
5 + #
6 + # Usage:
7 + # location / {
8 + # proxy_pass http://localhost:PORT;
9 + # include /etc/nginx/proxy-common.conf;
10 + # }
11 +
12 + proxy_set_header Host $host;
13 + proxy_set_header X-Real-IP $remote_addr;
14 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
15 + proxy_set_header X-Forwarded-Proto $scheme;
16 +
17 + # WebSocket support
18 + proxy_http_version 1.1;
19 + proxy_set_header Upgrade $http_upgrade;
20 + proxy_set_header Connection "upgrade";
21 +
22 + # Timeouts — 120s to accommodate slow RPC calls during heavy torrent activity
23 + proxy_connect_timeout 120s;
24 + proxy_send_timeout 120s;
25 + proxy_read_timeout 120s;
26 +
27 + # Disable buffering — Transmission's UI uses streaming/WebSocket responses
28 + proxy_buffering off;
29 + proxy_request_buffering off;