-
Notifications
You must be signed in to change notification settings - Fork 185
reverse proxy (nginx)
Marcel Schramm edited this page Jan 11, 2021
·
1 revision
If you are running nginx as a reverse proxy, you need to forward both websocket connections and http. On top of that, scribblers needs the forward headers to correctly function. This is partly related to the requests scribbler does from within the JS and the client IP limit.
Here's an example configuration that has been known to work:
location / {
# WebSocket support (nginx 1.4)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_read_timeout 86400;
proxy_pass http://0.0.0.0:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}