Simplify login data struct, add experimental login flags

This commit is contained in:
NG (Graham) committed 2026-02-14 18:08:12 -05:00
1 parent b9a6fae1e0
commit 872f224af6
13 files changed
+119 -72

No files matched your search

+7
View File
@@ -84,6 +84,8 @@ pub struct ServerSettings {
pub auto_signup: bool,
#[serde(default)]
pub queue_mode: QueueMode,
#[serde(default = "default_domain_root")]
pub domain: String,
#[serde(default = "default_cdn_root_url")]
pub cdn_url: String,
#[serde(default = "default_auth_root_url")]
@@ -119,6 +121,7 @@ fn default_server_conf() -> ServerSettings {
database: default_db_conn(),
auto_signup: false,
queue_mode: QueueMode::Notify,
domain: default_domain_root(),
cdn_url: default_cdn_root_url(),
auth_url: default_auth_root_url(),
intercom_url: default_intercom_root_url(),
@@ -130,6 +133,10 @@ fn default_server_conf() -> ServerSettings {
}
}
fn default_domain_root() -> String {
"127.0.0.1".to_owned()
}
fn default_cdn_root_url() -> String {
"http://127.0.0.1:8010".to_owned()
}