This shows you the differences between two versions of the page.
| portainer:dockers:swag [2024/07/28 14:25] – created dirk | portainer:dockers:swag [2024/07/28 14:26] (current) – dirk | ||
|---|---|---|---|
| Line 45: | Line 45: | ||
| * restart swag | * restart swag | ||
| - | ===== appdata/ | ||
| - | ==== bazarr.subdomain.conf ==== | ||
| - | < | ||
| - | |||
| - | server { | ||
| - | listen 443 ssl; | ||
| - | listen [::]:443 ssl; | ||
| - | |||
| - | server_name bazarr.*; | ||
| - | |||
| - | include / | ||
| - | |||
| - | client_max_body_size 0; | ||
| - | |||
| - | # enable for ldap auth, fill in ldap details in ldap.conf | ||
| - | #include / | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | location / { | ||
| - | # enable the next two lines for http auth | ||
| - | #auth_basic " | ||
| - | # | ||
| - | |||
| - | # enable the next two lines for ldap auth | ||
| - | # | ||
| - | #error_page 401 =200 /login; | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app bazarr; | ||
| - | set $upstream_port 6767; | ||
| - | set $upstream_proto http; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | ==== deluge.subdomain.conf ==== | ||
| - | < | ||
| - | |||
| - | server { | ||
| - | listen 443 ssl; | ||
| - | listen [::]:443 ssl; | ||
| - | |||
| - | server_name deluge.*; | ||
| - | |||
| - | include / | ||
| - | |||
| - | client_max_body_size 0; | ||
| - | |||
| - | # enable for ldap auth, fill in ldap details in ldap.conf | ||
| - | #include / | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | location / { | ||
| - | # enable the next two lines for http auth | ||
| - | #auth_basic " | ||
| - | # | ||
| - | |||
| - | # enable the next two lines for ldap auth | ||
| - | # | ||
| - | #error_page 401 =200 /login; | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app delugevpn; | ||
| - | set $upstream_port 8112; | ||
| - | set $upstream_proto http; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | ==== dokuwiki.subdomain.conf ==== | ||
| - | < | ||
| - | # Make sure that your dns has a cname set for dokuwiki | ||
| - | |||
| - | server { | ||
| - | listen 443 ssl; | ||
| - | listen [::]:443 ssl; | ||
| - | |||
| - | server_name wiki.*; | ||
| - | |||
| - | include / | ||
| - | |||
| - | client_max_body_size 0; | ||
| - | |||
| - | #enable for ldap auth, fill in ldap details in ldap.conf | ||
| - | #include / | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | location / { | ||
| - | #enable the next two lines for http auth | ||
| - | #auth_basic " | ||
| - | # | ||
| - | |||
| - | #enable the next two lines for ldap auth | ||
| - | # | ||
| - | #error_page 401 =200 /ldaplogin; | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app dokuwiki; | ||
| - | set $upstream_port 80; | ||
| - | set $upstream_proto http; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | ==== edge.subdomain.conf ==== | ||
| - | < | ||
| - | listen 80; | ||
| - | server_name edge.*; | ||
| - | return 301 https:// | ||
| - | } | ||
| - | |||
| - | upstream edge { | ||
| - | server 192.168.1.1; | ||
| - | keepalive 32; | ||
| - | } | ||
| - | |||
| - | server { | ||
| - | listen 443 ssl http2; | ||
| - | server_name edge.*; | ||
| - | client_max_body_size 512m; | ||
| - | location / { | ||
| - | proxy_pass https:// | ||
| - | proxy_http_version 1.1; | ||
| - | proxy_buffering off; | ||
| - | proxy_set_header Upgrade $http_upgrade; | ||
| - | proxy_set_header Connection " | ||
| - | proxy_set_header Host $host; | ||
| - | proxy_set_header X-Real-IP $remote_addr; | ||
| - | proxy_set_header X-Forward-For $proxy_add_x_forwarded_for; | ||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | ==== games.subdomain.conf ==== | ||
| - | < | ||
| - | |||
| - | server { | ||
| - | listen 443 ssl; | ||
| - | listen [::]:443 ssl; | ||
| - | |||
| - | server_name games.*; | ||
| - | |||
| - | include / | ||
| - | |||
| - | client_max_body_size 0; | ||
| - | |||
| - | #enable for ldap auth, fill in ldap details in ldap.conf | ||
| - | #include / | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | location / { | ||
| - | #enable the next two lines for http auth | ||
| - | #auth_basic " | ||
| - | # | ||
| - | |||
| - | #enable the next two lines for ldap auth | ||
| - | # | ||
| - | #error_page 401 =200 /ldaplogin; | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app games; | ||
| - | set $upstream_port 8080; | ||
| - | set $upstream_proto http; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | } | ||
| - | }</ | ||
| - | ==== home.subdomain.conf ==== | ||
| - | * only works if hoobs is installed on a vm | ||
| - | < | ||
| - | # make sure that your dns has a cname set for home | ||
| - | |||
| - | server { | ||
| - | listen 443 ssl http2; | ||
| - | |||
| - | | ||
| - | | ||
| - | |||
| - | #access_log / | ||
| - | #error_log / | ||
| - | # | ||
| - | # ssl on; | ||
| - | # | ||
| - | # ssl_certificate / | ||
| - | # ssl_certificate_key / | ||
| - | |||
| - | | ||
| - | proxy_pass http:// | ||
| - | # proxy_redirect off; | ||
| - | proxy_redirect http:// https://; | ||
| - | #added line below | ||
| - | proxy_http_version 1.1; | ||
| - | proxy_set_header Host $http_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; | ||
| - | proxy_set_header X-Forwarded-Protocol $scheme; | ||
| - | proxy_set_header X-Url-Scheme $scheme; | ||
| - | #added these 2 lines below | ||
| - | proxy_set_header Upgrade $http_upgrade; | ||
| - | proxy_set_header Connection " | ||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | ==== nextcloud.subdomain.conf ==== | ||
| - | * extra steps found below and on youtube | ||
| - | < | ||
| - | # assuming this container is called " | ||
| - | # located at / | ||
| - | # ' | ||
| - | # ' | ||
| - | # ' | ||
| - | # ' | ||
| - | # | ||
| - | # Also don't forget to add your domain name to the trusted domains array. It should look somewhat like this: | ||
| - | # array ( | ||
| - | # 0 => ' | ||
| - | # 1 => ' | ||
| - | # ), | ||
| - | |||
| - | server { | ||
| - | listen 443 ssl; | ||
| - | listen [::]:443 ssl; | ||
| - | |||
| - | server_name cloud.*; | ||
| - | |||
| - | include / | ||
| - | add_header Strict-Transport-Security " | ||
| - | |||
| - | client_max_body_size 0; | ||
| - | |||
| - | location / { | ||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app 192.168.1.3; | ||
| - | set $upstream_port 444; | ||
| - | set $upstream_proto https; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | proxy_max_temp_file_size 2048m; | ||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | ==== pi.subdomain.conf ==== | ||
| - | * only works if pihole is installed on vm | ||
| - | < | ||
| - | ## Version 2020/12/09 | ||
| - | # make sure that your dns has a cname set for pihole and that your pihole container is not using a base url | ||
| - | |||
| - | server { | ||
| - | listen 443 ssl; | ||
| - | listen [::]:443 ssl; | ||
| - | |||
| - | server_name pi.*; | ||
| - | |||
| - | include / | ||
| - | |||
| - | client_max_body_size 0; | ||
| - | |||
| - | # enable for ldap auth, fill in ldap details in ldap.conf | ||
| - | #include / | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | location / { | ||
| - | # enable the next two lines for http auth | ||
| - | #auth_basic " | ||
| - | # | ||
| - | |||
| - | # enable the next two lines for ldap auth | ||
| - | # | ||
| - | #error_page 401 =200 /ldaplogin; | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app 192.168.1.2; | ||
| - | set $upstream_port 80; | ||
| - | set $upstream_proto http; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | proxy_hide_header X-Frame-Options; | ||
| - | } | ||
| - | |||
| - | location /admin { | ||
| - | # enable the next two lines for http auth | ||
| - | #auth_basic " | ||
| - | # | ||
| - | |||
| - | # enable the next two lines for ldap auth | ||
| - | # | ||
| - | #error_page 401 =200 /ldaplogin; | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app 192.168.1.2; | ||
| - | set $upstream_port 80; | ||
| - | set $upstream_proto http; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | proxy_hide_header X-Frame-Options; | ||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | ==== plex.subdomain.conf ==== | ||
| - | < | ||
| - | # if plex is running in bridge mode and the container is named " | ||
| - | # if not, replace the line "set $upstream_app plex;" with "set $upstream_app < | ||
| - | # or "set $upstream_app < | ||
| - | # in plex server settings, under network, fill in " | ||
| - | |||
| - | server { | ||
| - | listen 443 ssl; | ||
| - | listen [::]:443 ssl; | ||
| - | |||
| - | server_name plex.*; | ||
| - | |||
| - | include / | ||
| - | |||
| - | client_max_body_size 0; | ||
| - | proxy_redirect off; | ||
| - | proxy_buffering off; | ||
| - | |||
| - | # enable for ldap auth, fill in ldap details in ldap.conf | ||
| - | #include / | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | location / { | ||
| - | # enable the next two lines for http auth | ||
| - | #auth_basic " | ||
| - | # | ||
| - | |||
| - | # enable the next two lines for ldap auth | ||
| - | # | ||
| - | #error_page 401 =200 /login; | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app 192.168.1.3; | ||
| - | set $upstream_port 32400; | ||
| - | set $upstream_proto http; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | proxy_set_header Upgrade $http_upgrade; | ||
| - | proxy_set_header Connection " | ||
| - | |||
| - | proxy_set_header X-Plex-Client-Identifier $http_x_plex_client_identifier; | ||
| - | proxy_set_header X-Plex-Device $http_x_plex_device; | ||
| - | proxy_set_header X-Plex-Device-Name $http_x_plex_device_name; | ||
| - | proxy_set_header X-Plex-Platform $http_x_plex_platform; | ||
| - | proxy_set_header X-Plex-Platform-Version $http_x_plex_platform_version; | ||
| - | proxy_set_header X-Plex-Product $http_x_plex_product; | ||
| - | proxy_set_header X-Plex-Token $http_x_plex_token; | ||
| - | proxy_set_header X-Plex-Version $http_x_plex_version; | ||
| - | proxy_set_header X-Plex-Nocache $http_x_plex_nocache; | ||
| - | proxy_set_header X-Plex-Provides $http_x_plex_provides; | ||
| - | proxy_set_header X-Plex-Device-Vendor $http_x_plex_device_vendor; | ||
| - | proxy_set_header X-Plex-Model $http_x_plex_model; | ||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | ==== radarr.subdomain.conf ==== | ||
| - | < | ||
| - | |||
| - | server { | ||
| - | listen 443 ssl; | ||
| - | listen [::]:443 ssl; | ||
| - | |||
| - | server_name movies.*; | ||
| - | |||
| - | include / | ||
| - | |||
| - | client_max_body_size 0; | ||
| - | |||
| - | # enable for ldap auth, fill in ldap details in ldap.conf | ||
| - | #include / | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | location / { | ||
| - | # enable the next two lines for http auth | ||
| - | #auth_basic " | ||
| - | # | ||
| - | |||
| - | # enable the next two lines for ldap auth | ||
| - | # | ||
| - | #error_page 401 =200 /login; | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app radarr; | ||
| - | set $upstream_port 7878; | ||
| - | set $upstream_proto http; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | } | ||
| - | |||
| - | location ~ (/ | ||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app radarr; | ||
| - | set $upstream_port 7878; | ||
| - | set $upstream_proto http; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | ==== sabnzbd.subdomain.conf ==== | ||
| - | < | ||
| - | # edit the sabnzbd.ini host_whitelist to avoid hostname verification issues. This format: | ||
| - | # host_whitelist = sabnzbd.domain.com, | ||
| - | |||
| - | server { | ||
| - | listen 443 ssl; | ||
| - | listen [::]:443 ssl; | ||
| - | |||
| - | server_name sabnzbd.*; | ||
| - | |||
| - | include / | ||
| - | |||
| - | client_max_body_size 0; | ||
| - | |||
| - | # enable for ldap auth, fill in ldap details in ldap.conf | ||
| - | #include / | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | location / { | ||
| - | # enable the next two lines for http auth | ||
| - | #auth_basic " | ||
| - | # | ||
| - | |||
| - | # enable the next two lines for ldap auth | ||
| - | # | ||
| - | #error_page 401 =200 /login; | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app sabnzbdvpn; | ||
| - | set $upstream_port 8080; | ||
| - | set $upstream_proto http; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | } | ||
| - | |||
| - | location ~ (/ | ||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app sabnzbdvpn; | ||
| - | set $upstream_port 8080; | ||
| - | set $upstream_proto http; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | ==== sonarr.subdomain.conf ==== | ||
| - | < | ||
| - | |||
| - | server { | ||
| - | listen 443 ssl; | ||
| - | listen [::]:443 ssl; | ||
| - | |||
| - | server_name tv.*; | ||
| - | |||
| - | include / | ||
| - | |||
| - | client_max_body_size 0; | ||
| - | |||
| - | # enable for ldap auth, fill in ldap details in ldap.conf | ||
| - | #include / | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | location / { | ||
| - | # enable the next two lines for http auth | ||
| - | #auth_basic " | ||
| - | # | ||
| - | |||
| - | # enable the next two lines for ldap auth | ||
| - | # | ||
| - | #error_page 401 =200 /login; | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app sonarr; | ||
| - | set $upstream_port 8989; | ||
| - | set $upstream_proto http; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | } | ||
| - | |||
| - | location ~ (/ | ||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app sonarr; | ||
| - | set $upstream_port 8989; | ||
| - | set $upstream_proto http; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | ==== tautulli.subdomain.conf ==== | ||
| - | < | ||
| - | |||
| - | server { | ||
| - | listen 443 ssl; | ||
| - | listen [::]:443 ssl; | ||
| - | |||
| - | server_name tautulli.*; | ||
| - | |||
| - | include / | ||
| - | |||
| - | client_max_body_size 0; | ||
| - | |||
| - | # enable for ldap auth, fill in ldap details in ldap.conf | ||
| - | #include / | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | location / { | ||
| - | # enable the next two lines for http auth | ||
| - | #auth_basic " | ||
| - | # | ||
| - | |||
| - | # enable the next two lines for ldap auth | ||
| - | # | ||
| - | #error_page 401 =200 /login; | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app tautulli; | ||
| - | set $upstream_port 8181; | ||
| - | set $upstream_proto http; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | } | ||
| - | |||
| - | location ~ (/ | ||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app tautulli; | ||
| - | set $upstream_port 8181; | ||
| - | set $upstream_proto http; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | ==== unifi-controller.subdomain.conf ==== | ||
| - | < | ||
| - | |||
| - | server { | ||
| - | listen 443 ssl; | ||
| - | listen [::]:443 ssl; | ||
| - | |||
| - | server_name unifi.*; | ||
| - | |||
| - | include / | ||
| - | |||
| - | client_max_body_size 0; | ||
| - | |||
| - | # enable for ldap auth, fill in ldap details in ldap.conf | ||
| - | #include / | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | location / { | ||
| - | # enable the next two lines for http auth | ||
| - | #auth_basic " | ||
| - | # | ||
| - | |||
| - | # enable the next two lines for ldap auth | ||
| - | # | ||
| - | #error_page 401 =200 /login; | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app unifi-controller; | ||
| - | set $upstream_port 8443; | ||
| - | set $upstream_proto https; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | } | ||
| - | |||
| - | location /wss { | ||
| - | # enable the next two lines for http auth | ||
| - | #auth_basic " | ||
| - | # | ||
| - | |||
| - | # enable the next two lines for ldap auth | ||
| - | # | ||
| - | #error_page 401 =200 /login; | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app unifi-controller; | ||
| - | set $upstream_port 8443; | ||
| - | set $upstream_proto https; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | proxy_buffering off; | ||
| - | proxy_set_header Upgrade $http_upgrade; | ||
| - | proxy_set_header Connection " | ||
| - | proxy_ssl_verify off; | ||
| - | } | ||
| - | |||
| - | } | ||
| - | </ | ||
| - | ==== www.subdomain.conf docker version ==== | ||
| - | < | ||
| - | |||
| - | server { | ||
| - | listen 443 ssl; | ||
| - | listen [::]:443 ssl; | ||
| - | |||
| - | server_name www.*; | ||
| - | |||
| - | include / | ||
| - | |||
| - | client_max_body_size 0; | ||
| - | |||
| - | #enable for ldap auth, fill in ldap details in ldap.conf | ||
| - | #include / | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | location / { | ||
| - | #enable the next two lines for http auth | ||
| - | #auth_basic " | ||
| - | # | ||
| - | |||
| - | #enable the next two lines for ldap auth | ||
| - | # | ||
| - | #error_page 401 =200 /ldaplogin; | ||
| - | |||
| - | # enable for Authelia | ||
| - | #include / | ||
| - | |||
| - | include / | ||
| - | resolver 127.0.0.11 valid=30s; | ||
| - | set $upstream_app website; | ||
| - | set $upstream_port 8080; | ||
| - | set $upstream_proto http; | ||
| - | proxy_pass $upstream_proto:// | ||
| - | |||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | ==== www.subdomain.conf OLD version ==== | ||
| - | < | ||
| - | |||
| - | server { | ||
| - | listen 443 ssl http2; | ||
| - | |||
| - | | ||
| - | | ||
| - | |||
| - | #access_log / | ||
| - | #error_log / | ||
| - | # | ||
| - | # ssl on; | ||
| - | # | ||
| - | # ssl_certificate / | ||
| - | # ssl_certificate_key / | ||
| - | |||
| - | | ||
| - | proxy_pass http:// | ||
| - | # proxy_redirect off; | ||
| - | proxy_redirect http:// https://; | ||
| - | #added line below | ||
| - | proxy_http_version 1.1; | ||
| - | proxy_set_header Host $http_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; | ||
| - | proxy_set_header X-Forwarded-Protocol $scheme; | ||
| - | proxy_set_header X-Url-Scheme $scheme; | ||
| - | #added these 2 lines below | ||
| - | proxy_set_header Upgrade $http_upgrade; | ||
| - | proxy_set_header Connection " | ||
| - | } | ||
| - | } | ||
| - | </ | ||