From 0004c092fd0c9c3816d2e19d96bc0c784c5f8078 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 23 Sep 2022 02:05:26 +0200 Subject: [PATCH] Fix #8 --- conf/nginx.conf | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 37c6029..909a2e0 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -10,5 +10,15 @@ location __PATH__/ { proxy_set_header Connection "upgrade"; # Include SSOWAT user panel. - include conf.d/yunohost_panel.conf.inc; + #include conf.d/yunohost_panel.conf.inc; +} + +location /cockpit/ { + proxy_pass https://127.0.0.1:8104/cockpit/; + proxy_http_version 1.1; + proxy_buffering off; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; }