Cleanup
- Default DNS at localhost - updated gitignore - updated default config yml
This commit is contained in:
parent
ae3b1d0897
commit
467a89c4ba
5
.gitignore
vendored
5
.gitignore
vendored
@ -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
|
@ -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:
|
||||||
|
@ -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/")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user