This commit is contained in:
Juan Font Alonso 2021-04-22 23:58:18 +02:00
commit 2555220a57

View File

@ -171,6 +171,8 @@ var enableRouteCmd = &cobra.Command{
func main() { func main() {
viper.SetConfigName("config") viper.SetConfigName("config")
viper.AddConfigPath("/etc/headscale/")
viper.AddConfigPath("$HOME/.headscale")
viper.AddConfigPath(".") viper.AddConfigPath(".")
viper.AutomaticEnv() viper.AutomaticEnv()
err := viper.ReadInConfig() err := viper.ReadInConfig()