diff options
Diffstat (limited to 'setup/config/config_federationapi.go')
-rw-r--r-- | setup/config/config_federationapi.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/setup/config/config_federationapi.go b/setup/config/config_federationapi.go index 176334dd..f62a23e1 100644 --- a/setup/config/config_federationapi.go +++ b/setup/config/config_federationapi.go @@ -49,7 +49,9 @@ func (c *FederationAPI) Verify(configErrs *ConfigErrors, isMonolith bool) { if !isMonolith { checkURL(configErrs, "federation_api.external_api.listen", string(c.ExternalAPI.Listen)) } - checkNotEmpty(configErrs, "federation_api.database.connection_string", string(c.Database.ConnectionString)) + if c.Matrix.DatabaseOptions.ConnectionString == "" { + checkNotEmpty(configErrs, "federation_api.database.connection_string", string(c.Database.ConnectionString)) + } } // The config for setting a proxy to use for server->server requests |