mirror of
https://tangled.org/tranquil.farm/tranquil-pds
synced 2026-08-27 19:36:49 +00:00
fix(config): remove unused duplicate custom handle url config key
This commit is contained in:
@@ -406,11 +406,6 @@ pub struct ServerConfig {
|
||||
#[config(env = "PDS_USER_HANDLE_DOMAINS", parse_env = split_comma_list)]
|
||||
pub user_handle_domains: Option<Vec<String>>,
|
||||
|
||||
/// List of domains available for user registration.
|
||||
/// Defaults to the PDS hostname when not set.
|
||||
#[config(env = "AVAILABLE_USER_DOMAINS", parse_env = split_comma_list)]
|
||||
pub available_user_domains: Option<Vec<String>>,
|
||||
|
||||
/// Enable PDS-hosted did:web identities. Hosting did:web requires a
|
||||
/// long-term commitment to serve DID documents; opt-in only.
|
||||
#[config(env = "ENABLE_PDS_HOSTED_DID_WEB", default = false)]
|
||||
@@ -470,13 +465,6 @@ impl ServerConfig {
|
||||
self.banned_words.clone().unwrap_or_default()
|
||||
}
|
||||
|
||||
/// Returns the available user domains, falling back to `[hostname_without_port]`.
|
||||
pub fn available_user_domain_list(&self) -> Vec<String> {
|
||||
self.available_user_domains
|
||||
.clone()
|
||||
.unwrap_or_else(|| vec![self.hostname_without_port().to_string()])
|
||||
}
|
||||
|
||||
/// Returns the user handle domains, falling back to `[hostname_without_port]`.
|
||||
pub fn user_handle_domain_list(&self) -> Vec<String> {
|
||||
self.user_handle_domains
|
||||
|
||||
@@ -34,7 +34,7 @@ pub fn is_self_hosted_did_web_enabled() -> bool {
|
||||
pub async fn describe_server() -> impl IntoResponse {
|
||||
let cfg = tranquil_config::get();
|
||||
let pds_hostname = &cfg.server.hostname;
|
||||
let domains = cfg.server.available_user_domain_list();
|
||||
let domains = cfg.server.user_handle_domain_list();
|
||||
let invite_code_required = cfg.server.invite_code_required;
|
||||
let privacy_policy = cfg.server.privacy_policy_url.clone();
|
||||
let terms_of_service = cfg.server.terms_of_service_url.clone();
|
||||
|
||||
Reference in New Issue
Block a user