mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Add proof-of-concept server intercom service through auth server
This commit is contained in:
@@ -78,6 +78,10 @@ pub struct ServerSettings {
|
||||
pub queue_mode: QueueMode,
|
||||
#[serde(default = "default_cdn_root_url")]
|
||||
pub cdn_url: String,
|
||||
#[serde(default = "default_auth_root_url")]
|
||||
pub auth_url: String,
|
||||
#[serde(default = "default_intercom_root_url")]
|
||||
pub intercom_url: String,
|
||||
#[serde(default = "default_feedback_url")]
|
||||
pub feedback_url: String,
|
||||
#[serde(default = "default_support_url")]
|
||||
@@ -104,6 +108,8 @@ fn default_server_conf() -> ServerSettings {
|
||||
auto_signup: false,
|
||||
queue_mode: QueueMode::Notify,
|
||||
cdn_url: default_cdn_root_url(),
|
||||
auth_url: default_auth_root_url(),
|
||||
intercom_url: default_intercom_root_url(),
|
||||
feedback_url: default_feedback_url(),
|
||||
support_url: default_support_url(),
|
||||
wiki_url: default_wiki_url(),
|
||||
@@ -114,6 +120,14 @@ fn default_cdn_root_url() -> String {
|
||||
"http://127.0.0.1:8010".to_owned()
|
||||
}
|
||||
|
||||
fn default_auth_root_url() -> String {
|
||||
"http://127.0.0.1:8001".to_owned() // mostly used for intercom
|
||||
}
|
||||
|
||||
fn default_intercom_root_url() -> String {
|
||||
"ws://127.0.0.1:8001".to_owned()
|
||||
}
|
||||
|
||||
fn default_feedback_url() -> String {
|
||||
"https://mstdn.ca/@ngram".to_owned()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user