diff --git a/conf/config.yml b/conf/config.yml index 7a4191b..93218d1 100644 --- a/conf/config.yml +++ b/conf/config.yml @@ -252,7 +252,7 @@ hsts: true ## Accepted values: true, false ## Default: true ## -#registration_enabled: true +registration_enabled: true ## ## Allow/Forbid users to log-in. This setting affects the ability @@ -261,7 +261,7 @@ hsts: true ## Accepted values: true, false ## Default: true ## -#login_enabled: true +login_enabled: true ## ## Enable/Disable the captcha challenge on the login page. @@ -272,7 +272,7 @@ hsts: true ## Accepted values: true, false ## Default: true ## -#captcha_enabled: true +captcha_enabled: true ## ## List of usernames that will be granted administrator rights. diff --git a/config_panel.toml b/config_panel.toml new file mode 100644 index 0000000..9e0545d --- /dev/null +++ b/config_panel.toml @@ -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" \ No newline at end of file