Reverse Proxy
Requirements
Nginx
Basic Configuration
server {
listen 80;
server_name streamarr.example.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name streamarr.example.com;
ssl_certificate /path/to/cert.pem;
ssl_certificate_key /path/to/key.pem;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
# WebSocket support
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Proxy headers
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;
# Timeouts
proxy_connect_timeout 60s;
proxy_send_timeout 60s;
proxy_read_timeout 60s;
}
}With Subdirectory
Caddy
Basic Configuration
With Custom Headers
Traefik
Docker Labels
Static Configuration
Apache
Basic Configuration
HAProxy
Cloudflare
Cloudflare Tunnel
NPM (Nginx Proxy Manager)
Troubleshooting
WebSocket Connection Failed
Mixed Content Errors
502 Bad Gateway
Infinite Redirect Loop
Last updated
Was this helpful?
