1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/invidious_ynh.git synced 2024-09-03 19:15:55 +02:00

Add config

This commit is contained in:
ericgaspar 2022-01-13 22:59:27 +01:00
parent 80dad06762
commit 4f134d10c2
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 32 additions and 3 deletions

View file

@ -252,7 +252,7 @@ hsts: true
## Accepted values: true, false ## Accepted values: true, false
## Default: true ## Default: true
## ##
#registration_enabled: true registration_enabled: true
## ##
## Allow/Forbid users to log-in. This setting affects the ability ## Allow/Forbid users to log-in. This setting affects the ability
@ -261,7 +261,7 @@ hsts: true
## Accepted values: true, false ## Accepted values: true, false
## Default: true ## Default: true
## ##
#login_enabled: true login_enabled: true
## ##
## Enable/Disable the captcha challenge on the login page. ## Enable/Disable the captcha challenge on the login page.
@ -272,7 +272,7 @@ hsts: true
## Accepted values: true, false ## Accepted values: true, false
## Default: true ## Default: true
## ##
#captcha_enabled: true captcha_enabled: true
## ##
## List of usernames that will be granted administrator rights. ## List of usernames that will be granted administrator rights.

29
config_panel.toml Normal file
View file

@ -0,0 +1,29 @@
version = "1.0"
[main]
name = "Invidious configuration"
services = ["__APP__"]
[main.config]
name = "Configuration Options"
[main.config.registration_enabled]
ask = "Enable registration"
type = "boolean"
Default= true
help = "Allow/Forbid Invidious (local) account creation"
bind = "registration_enabled:__FINALPATH__/config/config.yml"
[main.config.login_enabled]
ask = "Enable login"
type = "boolean"
Default= true
help = "Allow/Forbid users to log-in"
bind = "login_enabled:__FINALPATH__/config/config.yml"
[main.config.captcha_enabled]
ask = "Enable captcha"
type = "boolean"
Default= true
help = "Enable/Disable the captcha challenge on the login page"
bind = "captcha_enabled:__FINALPATH__/config/config.yml"