mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-19 19:25:56 +00:00
feat(infra): enable production TLS for Phases 11-12 via coa-manager.duckdns.org
This commit is contained in:
1 parent
42c05c50e7
commit
1dc212968d
16 files changed
+251
-65
No files matched your search
@@ -28,7 +28,7 @@ fn from_control(e: ControlFail) -> ServiceError {
|
||||
|
||||
fn registry_url() -> Result<String, ServiceError> {
|
||||
let settings = coa_core::realm_registry::settings::load(&data_dir().join("registry")).map_err(|e| fail("registry", e.to_string()))?;
|
||||
std::env::var("COA_REGISTRY_URL").ok().filter(|u| !u.is_empty()).or(settings.url).ok_or_else(|| fail("registry", "Enter the Registry address first."))
|
||||
Ok(std::env::var("COA_REGISTRY_URL").ok().filter(|u| !u.is_empty()).unwrap_or_else(|| settings.effective_url().to_string()))
|
||||
}
|
||||
|
||||
fn player(state: &State<'_, AppState>) -> Result<Arc<PlayerControl>, ServiceError> {
|
||||
|
||||
@@ -1808,7 +1808,7 @@ async fn portable_preflight_remote(state: State<'_, AppState>, character: String
|
||||
|
||||
fn browse_client() -> std::result::Result<coa_core::realm_registry::BrowseClient, UiError> {
|
||||
let settings = coa_core::realm_registry::settings::load(&data_dir().join("registry"))?;
|
||||
let url = std::env::var("COA_REGISTRY_URL").ok().filter(|u| !u.is_empty()).or(settings.url).ok_or_else(|| Error::Invalid("Enter the Registry address first.".into()))?;
|
||||
let url = std::env::var("COA_REGISTRY_URL").ok().filter(|u| !u.is_empty()).unwrap_or_else(|| settings.effective_url().to_string());
|
||||
Ok(coa_core::realm_registry::BrowseClient::new(&url)?)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user