mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-24 07:05:38 -07:00
parent
4ebc40810d
commit
4cdc8e11e4
1 changed files with 17 additions and 0 deletions
|
@ -18,6 +18,23 @@ server {
|
|||
#include /config/nginx/authelia-server.conf;
|
||||
|
||||
location / {
|
||||
|
||||
# Ensuring it can use websockets
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
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 http;
|
||||
proxy_redirect http:// $scheme://;
|
||||
|
||||
# The proxy must preserve the host because gotify verifies the host with the origin for WebSocket connections
|
||||
proxy_set_header Host $http_host;
|
||||
|
||||
# These sets the timeout so that the websocket can stay alive
|
||||
proxy_connect_timeout 1m;
|
||||
proxy_send_timeout 1m;
|
||||
proxy_read_timeout 1m;
|
||||
|
||||
# enable the next two lines for http auth
|
||||
#auth_basic "Restricted";
|
||||
#auth_basic_user_file /config/nginx/.htpasswd;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue