mirror of
https://github.com/YunoHost-Apps/readarr_ynh.git
synced 2024-09-03 20:16:17 +02:00
fix
This commit is contained in:
parent
1dbb443640
commit
3088880641
3 changed files with 29 additions and 2 deletions
17
conf/config.xml
Normal file
17
conf/config.xml
Normal 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>
|
|
@ -61,9 +61,9 @@ ram.runtime = "50M"
|
||||||
[resources.permissions]
|
[resources.permissions]
|
||||||
main.url = "/"
|
main.url = "/"
|
||||||
api.url = "/api"
|
api.url = "/api"
|
||||||
api.show_tile = false
|
|
||||||
api.allowed = "visitors"
|
api.allowed = "visitors"
|
||||||
api.auth_header = false
|
api.show_tile = false
|
||||||
|
api.protected = true
|
||||||
|
|
||||||
[resources.ports]
|
[resources.ports]
|
||||||
main.default = 8787
|
main.default = 8787
|
||||||
|
|
|
@ -47,6 +47,16 @@ yunohost service add $app --description="Book Manager and Automation" --log="/va
|
||||||
#chmod 400 "$install_dir/some_config_file"
|
#chmod 400 "$install_dir/some_config_file"
|
||||||
#chown $app:$app "$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
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue