mirror of
https://github.com/YunoHost-Apps/invidious_ynh.git
synced 2024-09-03 19:15:55 +02:00
implement new parameters
This commit is contained in:
parent
333b13b0be
commit
f1b9adce0d
2 changed files with 45 additions and 26 deletions
|
@ -216,7 +216,7 @@ hsts: true
|
||||||
## Accepted values: true, false
|
## Accepted values: true, false
|
||||||
## Default: true
|
## Default: true
|
||||||
##
|
##
|
||||||
#popular_enabled: true
|
popular_enabled: __POPULAR_ENABLED__
|
||||||
|
|
||||||
##
|
##
|
||||||
## Enable/Disable statstics (available at /api/v1/stats).
|
## Enable/Disable statstics (available at /api/v1/stats).
|
||||||
|
@ -305,7 +305,7 @@ admins: ["__ADMIN__"]
|
||||||
## Accepted values: true, false
|
## Accepted values: true, false
|
||||||
## Default: true
|
## Default: true
|
||||||
##
|
##
|
||||||
#enable_user_notifications: true
|
enable_user_notifications: __ENABLE_USER_NOTIFICATION__
|
||||||
|
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
# Background jobs
|
# Background jobs
|
||||||
|
@ -433,7 +433,7 @@ jobs:
|
||||||
## Accepted values: any string. HTML is accepted.
|
## Accepted values: any string. HTML is accepted.
|
||||||
## Default: <none>
|
## Default: <none>
|
||||||
##
|
##
|
||||||
#banner:
|
banner: __BANNER__
|
||||||
|
|
||||||
##
|
##
|
||||||
## Subscribe to channels using PubSubHub (Google PubSubHubbub service).
|
## Subscribe to channels using PubSubHub (Google PubSubHubbub service).
|
||||||
|
|
|
@ -4,29 +4,48 @@ version = "1.0"
|
||||||
name = "Invidious configuration"
|
name = "Invidious configuration"
|
||||||
services = ["__APP__"]
|
services = ["__APP__"]
|
||||||
|
|
||||||
[main.config]
|
|
||||||
name = "Configuration Options"
|
|
||||||
|
|
||||||
[main.config.registration_enabled]
|
[main.users_accounts]
|
||||||
ask = "Enable registration"
|
name = "Users and accounts configuration"
|
||||||
type = "boolean"
|
|
||||||
yes = "true"
|
|
||||||
no = "false"
|
|
||||||
help = "Allow/Forbid Invidious (local) account creation"
|
|
||||||
bind = "registration_enabled:__INSTALL_DIR__/config/config.yml"
|
|
||||||
|
|
||||||
[main.config.login_enabled]
|
[main.users_accounts.registration_enabled]
|
||||||
ask = "Enable login"
|
ask = "Enable registration"
|
||||||
type = "boolean"
|
type = "boolean"
|
||||||
yes = "true"
|
yes = "true"
|
||||||
no = "false"
|
no = "false"
|
||||||
help = "Allow/Forbid users to log-in"
|
help = "Allow/Forbid Invidious (local) account creation"
|
||||||
bind = "login_enabled:__INSTALL_DIR__/config/config.yml"
|
bind = "registration_enabled:__INSTALL_DIR__/config/config.yml"
|
||||||
|
|
||||||
[main.config.captcha_enabled]
|
[main.users_accounts.login_enabled]
|
||||||
ask = "Enable captcha"
|
ask = "Enable login"
|
||||||
type = "boolean"
|
type = "boolean"
|
||||||
yes = "true"
|
yes = "true"
|
||||||
no = "false"
|
no = "false"
|
||||||
help = "Enable/Disable the captcha challenge on the login page"
|
help = "Allow/Forbid users to log-in"
|
||||||
bind = "captcha_enabled:__INSTALL_DIR__/config/config.yml"
|
bind = "login_enabled:__INSTALL_DIR__/config/config.yml"
|
||||||
|
|
||||||
|
[main.users_accounts.captcha_enabled]
|
||||||
|
ask = "Enable captcha"
|
||||||
|
type = "boolean"
|
||||||
|
yes = "true"
|
||||||
|
no = "false"
|
||||||
|
help = "Enable/Disable the captcha challenge on the login page"
|
||||||
|
bind = "captcha_enabled:__INSTALL_DIR__/config/config.yml"
|
||||||
|
|
||||||
|
[main.users_accounts.enable_user_notifications]
|
||||||
|
ask = "Enable user notifications"
|
||||||
|
type = "boolean"
|
||||||
|
yes = "true"
|
||||||
|
no = "false"
|
||||||
|
help = "Note: On large instances, it is recommended to set this option to 'false' in order to reduce the amount of data written to the database, and hence improve the overall performance of the instance."
|
||||||
|
bind = "enable_user_notifications:__INSTALL_DIR__/config/config.yml"
|
||||||
|
|
||||||
|
|
||||||
|
[main.miscellaneous]
|
||||||
|
name = "Miscellaneous configuration"
|
||||||
|
|
||||||
|
[main.miscellaneous.banner]
|
||||||
|
ask.en = "Text of the banner"
|
||||||
|
bind = "banner:__FINALPATH__/config.yaml"
|
||||||
|
help = "Custom banner displayed at the top of every page. This can used for instance announcements. Accepted values: any string. HTML is accepted. Empty by default."
|
||||||
|
type = "string"
|
||||||
|
|
Loading…
Add table
Reference in a new issue