From c6756e708e9c0990551ff4e923d2f1d5c92ca10d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 4 Oct 2023 14:34:53 +0200 Subject: [PATCH 1/3] Update manifest.toml --- manifest.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/manifest.toml b/manifest.toml index cf2a93b..d1afd59 100644 --- a/manifest.toml +++ b/manifest.toml @@ -64,6 +64,7 @@ ram.runtime = "50M" [resources.permissions] main.url = "/" + main.auth_header = false [resources.ports] From b89a2fdf581489847a57362fe89c6189a39a4a04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 4 Oct 2023 14:40:27 +0200 Subject: [PATCH 2/3] cleaning --- scripts/install | 4 ++-- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 6a9fd99..4bfcb82 100755 --- a/scripts/install +++ b/scripts/install @@ -33,7 +33,7 @@ ynh_add_nginx_config # Create a dedicated systemd config ynh_add_systemd_config -yunohost service add $app --description="A short description of the app" --log="/var/log/$app/$app.log" +yunohost service add $app --description="Media request tool" --log="/var/log/$app/$app.log" #================================================= # APP INITIAL CONFIGURATION @@ -44,7 +44,7 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_add_config --template="../conf/database.json" --destination="$install_dir/database.json" -chmod 400 "$install_dir/database.json" +chmod 650 "$install_dir/database.json" chown $app:$app "$install_dir/database.json" #================================================= diff --git a/scripts/restore b/scripts/restore index f77a4ac..462e138 100755 --- a/scripts/restore +++ b/scripts/restore @@ -48,7 +48,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_restore_file --origin_path="/etc/systemd/system/$app.service" systemctl enable $app.service --quiet -yunohost service add $app --description="A short description of the app" --log="/var/log/$app/$app.log" +yunohost service add $app --description="Media request tool" --log="/var/log/$app/$app.log" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 741bd9a..d003c44 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -43,7 +43,7 @@ ynh_add_nginx_config ynh_add_systemd_config -yunohost service add $app --description="A short description of the app" --log="/var/log/$app/$app.log" +yunohost service add $app --description="Media request tool" --log="/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE From 2be6775c4858dabbf8d990e4999061747c6c9bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 4 Oct 2023 14:45:07 +0200 Subject: [PATCH 3/3] Update manifest.toml --- manifest.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/manifest.toml b/manifest.toml index d1afd59..9e3d580 100644 --- a/manifest.toml +++ b/manifest.toml @@ -65,6 +65,10 @@ ram.runtime = "50M" [resources.permissions] main.url = "/" main.auth_header = false + api.url = "/api" + api.allowed = "visitors" + api.show_tile = false + api.protected = true [resources.ports]