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.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/setup/config/config_keyserver.go b/setup/config/config_keyserver.go
index 9e2d54cd..5f2f22c8 100644
--- a/setup/config/config_keyserver.go
+++ b/setup/config/config_keyserver.go
@@ -18,9 +18,12 @@ 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))
if c.Matrix.DatabaseOptions.ConnectionString == "" {
checkNotEmpty(configErrs, "key_server.database.connection_string", string(c.Database.ConnectionString))
}
+ if isMonolith { // polylith required configs below
+ return
+ }
+ checkURL(configErrs, "key_server.internal_api.listen", string(c.InternalAPI.Listen))
+ checkURL(configErrs, "key_server.internal_api.connect", string(c.InternalAPI.Connect))
}