Can disable auth
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user