Allow to set desec URLs from environment

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl
2026-07-07 10:13:49 +02:00
parent 54c79c404c
commit ce8a7f6f46
+2 -2
View File
@@ -231,7 +231,7 @@ class ConfigurationManager
* stray env var redirecting it in production.
*/
public string $desecApiBase {
get => $this->get('desec_api_base', 'https://desec.io/api/v1');
get => $this->getEnvironmentalVariableOrConfig('TESTING___DESEC_API_BASE', 'desec_api_base', 'https://desec.io/api/v1');
}
/**
@@ -239,7 +239,7 @@ class ConfigurationManager
* 'desec_update_url' config key (configuration.json) only — see desecApiBase.
*/
public string $desecUpdateUrl {
get => $this->get('desec_update_url', 'https://update.dedyn.io/');
get => $this->getEnvironmentalVariableOrConfig('TESTING___DESEC_UPDATE_URL', 'desec_update_url', 'https://update.dedyn.io/');
}
public string $desecToken {