main: Add defaults
This commit is contained in:
parent
1c55b7d328
commit
1ce7cfb147
7
main.go
7
main.go
|
@ -13,6 +13,13 @@ import (
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
viper.SetDefault("ldap.bind", "localhost:389")
|
||||||
|
viper.SetDefault("ldap.tls", false)
|
||||||
|
viper.SetDefault("ldap.key", "/var/lib/netauth/keys/ldap.key")
|
||||||
|
viper.SetDefault("ldap.cert", "/var/lib/netauth/keys/ldap.cert")
|
||||||
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
var appLogger hclog.Logger
|
var appLogger hclog.Logger
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue