meson / [CiCADA] _proxy.conf

Last active 2 weeks ago

Like 0

Revision a772798239815513cdeb69cd21b98ff909f8ee27

_proxy.conf Raw
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
12proxy_set_header Host $host;
13proxy_set_header X-Real-IP $remote_addr;
14proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
15proxy_set_header X-Forwarded-Proto $scheme;
16
17# WebSocket support
18proxy_http_version 1.1;
19proxy_set_header Upgrade $http_upgrade;
20proxy_set_header Connection "upgrade";
21
22# Timeouts — 120s to accommodate slow RPC calls during heavy torrent activity
23proxy_connect_timeout 120s;
24proxy_send_timeout 120s;
25proxy_read_timeout 120s;
26
27# Disable buffering — Transmission's UI uses streaming/WebSocket responses
28proxy_buffering off;
29proxy_request_buffering off;