From 456a26be3800004358fcc64f3f84d367350c9e38 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Sat, 24 Feb 2024 01:50:48 +0100 Subject: [PATCH] Enable websockets (see: https://github.com/YunoHost-Apps/nodered_ynh/issues/78 ) --- conf/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 9ac97f6..02d4d9e 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -11,6 +11,9 @@ location ^~ __PATH__/ { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; + # Enable websockets (see: https://github.com/YunoHost-Apps/nodered_ynh/issues/78 ) + more_set_headers "Content-Security-Policy : upgrade-insecure-requests; default-src https: data: blob: ; connect-src 'self' wss://$host; object-src https: data: 'unsafe-inline'; style-src https: data: 'unsafe-inline' ; script-src https: data: 'unsafe-inline' 'unsafe-eval'; worker-src 'self' blob:;"; + # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; }