diff --git a/conf/config.xml b/conf/config.xml new file mode 100644 index 0000000..bc40bfb --- /dev/null +++ b/conf/config.xml @@ -0,0 +1,17 @@ + + info + 127.0.0.1 + False + + __PORT__ + __PATH__ + __API_KEY__ + None + BuiltIn + develop + __PORT__ + False + + False + Radarr + diff --git a/manifest.toml b/manifest.toml index 85f2f64..24211d6 100644 --- a/manifest.toml +++ b/manifest.toml @@ -61,9 +61,9 @@ ram.runtime = "50M" [resources.permissions] main.url = "/" api.url = "/api" - api.show_tile = false api.allowed = "visitors" - api.auth_header = false + api.show_tile = false + api.protected = true [resources.ports] main.default = 8787 diff --git a/scripts/install b/scripts/install index 2cc10d3..afd05bb 100755 --- a/scripts/install +++ b/scripts/install @@ -47,6 +47,16 @@ yunohost service add $app --description="Book Manager and Automation" --log="/va #chmod 400 "$install_dir/some_config_file" #chown $app:$app "$install_dir/some_config_file" +#================================================= +# ADD A CONFIGURATION +#================================================= +ynh_script_progression --message="Configuring $app..." --weight=2 + +api_key=$(ynh_string_random --length=32) +ynh_app_setting_set --app=$app --key=api_key --value=$api_key + +ynh_add_config --template="../conf/config.xml" --destination="$data_dir/config.xml" + #================================================= # GENERIC FINALIZATION #=================================================