diff options
Diffstat (limited to 'files/uptime-kuma.conf')
| -rw-r--r-- | files/uptime-kuma.conf | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/files/uptime-kuma.conf b/files/uptime-kuma.conf new file mode 100644 index 0000000..77fff8e --- /dev/null +++ b/files/uptime-kuma.conf @@ -0,0 +1,27 @@ +server { + listen 80; + server_name status.bensanders.net; + + location / { + proxy_pass http://localhost:3001; + 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; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + + # Added WebSocket support + proxy_set_header Sec-WebSocket-Key $http_sec_websocket_key; + proxy_set_header Sec-WebSocket-Version $http_sec_websocket_version; + proxy_set_header Sec-WebSocket-Extensions $http_sec_websocket_extensions; + + # Improve performance of this reverse proxy + proxy_buffering off; + } + + # Redirect HTTP to HTTPS if needed for encryption + # Uncomment the following lines if you have SSL enabled + # return 301 https://$host$request_uri; +}
\ No newline at end of file |
