mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-28 19:41:17 +00:00
1.3 KiB
1.3 KiB
🔄 Reverse Proxy Setup
Pulse uses WebSockets for real-time updates. Your proxy MUST support WebSockets.
⚡ Quick Configs
Nginx
location / {
proxy_pass http://localhost:7655;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
# Critical for WebSockets
proxy_read_timeout 86400; # 24h
}
Caddy
pulse.example.com {
reverse_proxy localhost:7655
}
Traefik (Docker Compose)
labels:
- "traefik.enable=true"
- "traefik.http.routers.pulse.rule=Host(`pulse.example.com`)"
- "traefik.http.services.pulse.loadbalancer.server.port=7655"
Apache
RewriteEngine On
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://localhost:7655/$1" [P,L]
ProxyPass / http://localhost:7655/
ProxyPassReverse / http://localhost:7655/
⚠️ Common Issues
- "Connection Lost": WebSocket upgrade failed. Check
UpgradeandConnectionheaders. - 502 Bad Gateway: Pulse is not running on port 7655.
- CORS Errors: Do not add CORS headers in the proxy; Pulse handles them. Set
ALLOWED_ORIGINSenv var if needed.