Can disable auth

This commit is contained in:
2023-09-08 09:04:48 +02:00
parent 57c023b45b
commit bd5ea1fb23
6 changed files with 15 additions and 3 deletions

View File

@ -33,6 +33,11 @@ pub struct AppConfig {
#[arg(long, env, default_value = "admin")]
pub auth_password: String,
/// Disable authentication WARNING! THIS IS UNSECURE, it was designed only for development
/// purpose, it should NEVER be used in production
#[arg(long, env)]
pub unsecure_disable_auth: bool,
/// Disable local auth
#[arg(long, env)]
pub disable_local_auth: bool,