- Default DNS at localhost
- updated gitignore
- updated default config yml
This commit is contained in:
Torben Nehmer 2021-08-24 16:49:17 +02:00
parent ae3b1d0897
commit 467a89c4ba
3 changed files with 7 additions and 2 deletions

5
.gitignore vendored
View File

@ -15,3 +15,8 @@ dyndns
# Dependency directories (remove the comment below to include it) # Dependency directories (remove the comment below to include it)
# vendor/ # vendor/
# Non-Example configs
conf.yml
users/*
!users/example.yml

View File

@ -1,7 +1,7 @@
service: service:
dns: dns:
defaultttl: 60 defaultttl: 60
server: 10.10.11.254:53 server: 127.0.0.1:53
users: users:
configdir: users/ configdir: users/
webapi: webapi:

View File

@ -28,7 +28,7 @@ func init() {
} }
func SetConfigDefaults() { func SetConfigDefaults() {
viper.SetDefault("Service.DNS.Server", "10.10.11.254:53") viper.SetDefault("Service.DNS.Server", "127.0.0.1:53")
viper.SetDefault("Service.DNS.DefaultTTL", 60) viper.SetDefault("Service.DNS.DefaultTTL", 60)
viper.SetDefault("Service.Users.ConfigDir", "users/") viper.SetDefault("Service.Users.ConfigDir", "users/")
} }