Skip to content
Snippets Groups Projects
Unverified Commit 90ae6ee2 authored by Joona Hoikkala's avatar Joona Hoikkala Committed by GitHub
Browse files

Default value for added configuration option to keep backwards compatibility with old config (#103)

parent 0fc5a8e8
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment