mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-20 19:09:07 +01:00
Add additional locations to look for the config.json file:
/etc/headscale and $HOME/.headscale
This commit is contained in:
parent
eac85a31ed
commit
a71387f9d2
@ -171,6 +171,8 @@ var enableRouteCmd = &cobra.Command{
|
||||
|
||||
func main() {
|
||||
viper.SetConfigName("config")
|
||||
viper.AddConfigPath("/etc/headscale/")
|
||||
viper.AddConfigPath("$HOME/.headscale")
|
||||
viper.AddConfigPath(".")
|
||||
viper.AutomaticEnv()
|
||||
err := viper.ReadInConfig()
|
||||
|
Loading…
Reference in New Issue
Block a user