aboutsummaryrefslogtreecommitdiff
path: root/setup/config/config_appservice.go
diff options
context:
space:
mode:
Diffstat (limited to 'setup/config/config_appservice.go')
-rw-r--r--setup/config/config_appservice.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/setup/config/config_appservice.go b/setup/config/config_appservice.go
index 3f4e1c91..d93b6ebe 100644
--- a/setup/config/config_appservice.go
+++ b/setup/config/config_appservice.go
@@ -52,7 +52,9 @@ func (c *AppServiceAPI) Defaults(generate bool) {
func (c *AppServiceAPI) Verify(configErrs *ConfigErrors, isMonolith bool) {
checkURL(configErrs, "app_service_api.internal_api.listen", string(c.InternalAPI.Listen))
checkURL(configErrs, "app_service_api.internal_api.bind", string(c.InternalAPI.Connect))
- checkNotEmpty(configErrs, "app_service_api.database.connection_string", string(c.Database.ConnectionString))
+ if c.Matrix.DatabaseOptions.ConnectionString == "" {
+ checkNotEmpty(configErrs, "app_service_api.database.connection_string", string(c.Database.ConnectionString))
+ }
}
// ApplicationServiceNamespace is the namespace that a specific application