From 31eed900fb4909aa83fc331ea7618213f8a8d4ea Mon Sep 17 00:00:00 2001 From: openoms Date: Mon, 31 Jul 2023 21:52:18 +0200 Subject: [PATCH] alllow wss for subdomain --- nginx/custom_website_subdomain.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nginx/custom_website_subdomain.sh b/nginx/custom_website_subdomain.sh index 18a9608..c3bad93 100644 --- a/nginx/custom_website_subdomain.sh +++ b/nginx/custom_website_subdomain.sh @@ -45,7 +45,11 @@ server { ssl_trusted_certificate /etc/letsencrypt/live/$SUBDOMAIN/chain.pem; location / { - proxy_pass $REDIRECT; + proxy_pass $REDIRECT; + # to allow wss:// connections + proxy_http_version 1.1; + proxy_set_header Upgrade \$http_upgrade; + proxy_set_header Connection \"upgrade\"; # from https://github.com/rootzoll/raspiblitz/blob/v1.7/home.admin/assets/nginx/snippets/ssl-proxy-params.conf proxy_redirect off;