From 3de8385e06773ddf03ea1dc9964b29b78cf52c45 Mon Sep 17 00:00:00 2001 From: Yunohost-Bot <> Date: Sun, 7 Aug 2022 20:05:49 +0200 Subject: [PATCH 1/4] =?UTF-8?q?[autopatch]=20Add=20Common=20Platform=C2=A0?= =?UTF-8?q?Enumeration=20id=20to=20`manifest.json`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 3392189..8a27a8c 100644 --- a/manifest.json +++ b/manifest.json @@ -12,7 +12,8 @@ "license": "LGPL-2.1-only", "website": "https://cockpit-project.org/", "admindoc": "https://cockpit-project.org/documentation.html", - "code": "https://github.com/cockpit-project/cockpit" + "code": "https://github.com/cockpit-project/cockpit", + "cpe": "cpe:2.3:a:agentejo:cockpit" }, "license": "LGPL-2.1-only", "maintainer": { @@ -44,4 +45,4 @@ } ] } -} +} \ No newline at end of file From 8b3b950028374c0c56b96f796ff604c1b67be11b Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 23 Sep 2022 02:05:16 +0200 Subject: [PATCH 2/4] Update change_url --- scripts/change_url | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index 01de24d..1eec6b9 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -114,6 +114,9 @@ ynh_script_progression --message="Updating a configuration file..." --weight=1 ynh_add_config --template="../conf/cockpit.conf" --destination="/etc/cockpit/cockpit.conf" +chmod 440 "/etc/cockpit/cockpit.conf" +chown root:$app-ws "/etc/cockpit/cockpit.conf" + #================================================= # GENERIC FINALISATION #================================================= From 0004c092fd0c9c3816d2e19d96bc0c784c5f8078 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 23 Sep 2022 02:05:26 +0200 Subject: [PATCH 3/4] 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"; } From 4a0472653458809bc387a323dc1825c5f1f33477 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 23 Sep 2022 21:13:01 +0200 Subject: [PATCH 4/4] Update manifest.json --- manifest.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 8a27a8c..59bb8a0 100644 --- a/manifest.json +++ b/manifest.json @@ -17,8 +17,8 @@ }, "license": "LGPL-2.1-only", "maintainer": { - "name": "liberodark", - "email": "liberodark@gmail.com" + "name": "", + "email": "" }, "requirements": { "yunohost": ">= 4.3.0"