# /etc/nginx/proxy-common.conf # # Shared proxy directives for reverse-proxy vhosts (Transmission, etc.). # Include inside location blocks that use proxy_pass. # # Usage: # location / { # proxy_pass http://localhost:PORT; # include /etc/nginx/proxy-common.conf; # } 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; # WebSocket support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; # Timeouts — 120s to accommodate slow RPC calls during heavy torrent activity proxy_connect_timeout 120s; proxy_send_timeout 120s; proxy_read_timeout 120s; # Disable buffering — Transmission's UI uses streaming/WebSocket responses proxy_buffering off; proxy_request_buffering off;