mirror of
https://github.com/joohoi/acme-dns.git
synced 2024-12-22 21:13:54 +07:00
Default value for added configuration option to keep backwards compatibility with old config (#103)
This commit is contained in:
parent
0fc5a8e848
commit
90ae6ee268
6
util.go
6
util.go
@ -49,6 +49,12 @@ func prepareConfig(conf DNSConfig) (DNSConfig, error) {
|
||||
if conf.Database.Connection == "" {
|
||||
return conf, errors.New("missing database configuration option \"connection\"")
|
||||
}
|
||||
|
||||
// Default values for options added to config to keep backwards compatibility with old config
|
||||
if conf.API.ACMECacheDir == "" {
|
||||
conf.API.ACMECacheDir = "api-certs"
|
||||
}
|
||||
|
||||
return conf, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user