1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Enable premium, add custom avatar saving support to complete #10

This commit is contained in:
NG (Graham)
2025-08-13 17:36:44 -04:00
parent 2642767a27
commit a8692b2839
16 changed files with 178 additions and 17 deletions

View File

@@ -76,6 +76,8 @@ pub struct ServerSettings {
pub auto_signup: bool,
#[serde(default)]
pub queue_mode: QueueMode,
#[serde(default = "default_cdn_root_url")]
pub cdn_url: String,
}
#[derive(Serialize, Deserialize, Clone, Debug, Default)]
@@ -95,5 +97,10 @@ fn default_server_conf() -> ServerSettings {
database: default_db_conn(),
auto_signup: false,
queue_mode: QueueMode::Notify,
cdn_url: default_cdn_root_url(),
}
}
fn default_cdn_root_url() -> String {
"http://127.0.0.1:8010".to_owned()
}