Can generate release builds

This commit is contained in:
2023-12-12 15:45:56 +01:00
parent f651c756b6
commit e8422f4b3c
11 changed files with 143 additions and 11 deletions

View File

@ -12,10 +12,17 @@ pub struct AppConfig {
#[clap(short, long, env, default_value = "0.0.0.0:8000")]
pub listen_address: String,
/// Website origin
/// Website main origin
#[clap(short, long, env, default_value = "http://localhost:3000")]
pub website_origin: String,
/// Additional allowed website origin
///
/// Warning! These origins won't be usable for OpenID authentication,
/// only for local auth
#[clap(long, env)]
pub additional_origins: Vec<String>,
/// Proxy IP, might end with a star "*"
#[clap(short, long, env)]
pub proxy_ip: Option<String>,
@ -74,7 +81,7 @@ pub struct AppConfig {
oidc_redirect_url: String,
/// Storage directory
#[arg(long, env, default_value = "storage")]
#[arg(short, long, env, default_value = "storage")]
pub storage: String,
/// Directory where temporary files are stored