aboutsummaryrefslogtreecommitdiff
path: root/setup/config/config_keyserver.go
diff options
context:
space:
mode:
Diffstat (limited to 'setup/config/config_keyserver.go')
-rw-r--r--setup/config/config_keyserver.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/setup/config/config_keyserver.go b/setup/config/config_keyserver.go
index 6180ccbc..9e2d54cd 100644
--- a/setup/config/config_keyserver.go
+++ b/setup/config/config_keyserver.go
@@ -20,5 +20,7 @@ func (c *KeyServer) Defaults(generate bool) {
func (c *KeyServer) Verify(configErrs *ConfigErrors, isMonolith bool) {
checkURL(configErrs, "key_server.internal_api.listen", string(c.InternalAPI.Listen))
checkURL(configErrs, "key_server.internal_api.bind", string(c.InternalAPI.Connect))
- checkNotEmpty(configErrs, "key_server.database.connection_string", string(c.Database.ConnectionString))
+ if c.Matrix.DatabaseOptions.ConnectionString == "" {
+ checkNotEmpty(configErrs, "key_server.database.connection_string", string(c.Database.ConnectionString))
+ }
}