From 9c4080b2f4804dbdbc9ffe001f131a86d89536a8 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 13 Jan 2022 09:46:09 +0100 Subject: [PATCH] Add config panel --- config_panel.toml | 15 +++++++++++++++ scripts/install | 1 + 2 files changed, 16 insertions(+) create mode 100644 config_panel.toml diff --git a/config_panel.toml b/config_panel.toml new file mode 100644 index 0000000..d719156 --- /dev/null +++ b/config_panel.toml @@ -0,0 +1,15 @@ +version = "1.0" + +[main] +name = "Settings" + + [main.global_config] + name = "Access options" + + services = ["nginx", "__APP__"] + + [main.global_config.enable_downloads] + ask = "Allow music download from the server?" + type = "boolean" + help = "Enable the option in the UI to download music/albums/artists/playlists from the server" + bind = "EnableDownloads:__CONFIG_PATH__/navidrome.toml" diff --git a/scripts/install b/scripts/install index 4b25be4..ca16384 100644 --- a/scripts/install +++ b/scripts/install @@ -24,6 +24,7 @@ domain=$YNH_APP_ARG_DOMAIN path_url=$YNH_APP_ARG_PATH is_public=$YNH_APP_ARG_IS_PUBLIC architecture=$YNH_ARCH +enable_downloads="0" app=$YNH_APP_INSTANCE_NAME