minor tweaks for multi-line nsupdate

This commit is contained in:
2024-01-15 15:02:37 -06:00
parent a4430227e3
commit c1739856ce
5 changed files with 97 additions and 16 deletions

View File

@@ -32,10 +32,12 @@ type Config struct {
RefreshSeconds int `default:"14400" env:"refresh_seconds"`
// nsupdate
NSUKey string `env:"nsupdate-key" secret:"true"`
NSUPort int `default:"53" env:"nsupdate-port"`
NSUServer string `default:"ns1.example.com" env:"nsupdate-server"`
NSUZone string `default:"example.com" env:"nsupdate-zone"`
NSUKeyLabel string `env:"nsupdate-key-label"`
NSUKey string `env:"nsupdate-key" secret:"true"`
NSUKeyAlgorithm string `default:"hmac-sha512" env:"nsupdate-key-algorithm"`
NSUPort int `default:"53" env:"nsupdate-port"`
NSUServer string `default:"ns1.example.com" env:"nsupdate-server"`
NSUZone string `default:"example.com" env:"nsupdate-zone"`
}
// New initializes the config variable for use with a prepared set of defaults.