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.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/setup/config/config_keyserver.go b/setup/config/config_keyserver.go
index 62a30dbb..6180ccbc 100644
--- a/setup/config/config_keyserver.go
+++ b/setup/config/config_keyserver.go
@@ -8,11 +8,13 @@ type KeyServer struct {
Database DatabaseOptions `yaml:"database"`
}
-func (c *KeyServer) Defaults() {
+func (c *KeyServer) Defaults(generate bool) {
c.InternalAPI.Listen = "http://localhost:7779"
c.InternalAPI.Connect = "http://localhost:7779"
c.Database.Defaults(10)
- c.Database.ConnectionString = "file:keyserver.db"
+ if generate {
+ c.Database.ConnectionString = "file:keyserver.db"
+ }
}
func (c *KeyServer) Verify(configErrs *ConfigErrors, isMonolith bool) {