1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kavita_ynh.git synced 2024-09-03 19:26:30 +02:00

Merge pull request #11 from YunoHost-Apps/testing

Testing
This commit is contained in:
Éric Gaspar 2023-06-04 23:16:13 +02:00 committed by GitHub
commit ddb390d1f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 5 deletions

View file

@ -1,5 +1,5 @@
{
"TokenKey": "super secret unguessable key",
"TokenKey": "__KEY__",
"Port": __PORT__,
"IpAddresses": "",
"BaseUrl": "__URL_PATH__"

View file

@ -39,8 +39,6 @@ ram.runtime = "50M"
default = "visitors"
[resources]
[resources.ports]
main.default = 5000
[resources.sources]
[resources.sources.main]
@ -52,6 +50,9 @@ ram.runtime = "50M"
armhf.url = "https://github.com/Kareadita/Kavita/releases/download/v0.7.2/kavita-linux-arm.tar.gz"
armhf.sha256 = "3bf7aac85f51432c8cc0a46ea885bb0167b03e9c0209858a76b1785f884cf104"
[resources.ports]
main.default = 5000
[resources.system_user]
[resources.install_dir]
@ -59,13 +60,13 @@ ram.runtime = "50M"
[resources.permissions]
main.url = "/"
api.url = "/api/*"
api.url = "/api"
api.show_tile = false
api.protected= true
api.allowed = ["visitors", "all_users"]
api.auth_header = false
hubs.url = "/hubs/*"
hubs.url = "/hubs"
hubs.show_tile = false
hubs.protected= true
hubs.auth_header = false

View file

@ -39,6 +39,7 @@ yunohost service add $app --description="Cross platform reading server" --log="/
#=================================================
ynh_script_progression --message="Modifying a config file..." --weight=1
key=$(ynh_string_random --length=24)
url_path=${path#/}
ynh_add_config --template="../conf/appsettings.json.example" --destination="$install_dir/config/appsettings.json"

View file

@ -45,6 +45,7 @@ chmod +x $install_dir/Kavita
#=================================================
ynh_script_progression --message="Modifying a config file..." --weight=1
key=$(ynh_string_random --length=24)
url_path=${path#/}
ynh_add_config --template="../conf/appsettings.json.example" --destination="$install_dir/config/appsettings.json"