1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/readarr_ynh.git synced 2024-09-03 20:16:17 +02:00
This commit is contained in:
Éric Gaspar 2023-10-04 22:25:52 +02:00
parent 1dbb443640
commit 3088880641
3 changed files with 29 additions and 2 deletions

17
conf/config.xml Normal file
View file

@ -0,0 +1,17 @@
<Config>
<LogLevel>info</LogLevel>
<BindAddress>127.0.0.1</BindAddress>
<EnableSsl>False</EnableSsl>
<SslCertPath></SslCertPath>
<Port>__PORT__</Port>
<UrlBase>__PATH__</UrlBase>
<ApiKey>__API_KEY__</ApiKey>
<AuthenticationMethod>None</AuthenticationMethod>
<UpdateMechanism>BuiltIn</UpdateMechanism>
<Branch>develop</Branch>
<SslPort>__PORT__</SslPort>
<LaunchBrowser>False</LaunchBrowser>
<SslCertPassword></SslCertPassword>
<AnalyticsEnabled>False</AnalyticsEnabled>
<InstanceName>Radarr</InstanceName>
</Config>

View file

@ -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

View file

@ -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
#=================================================