mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Merge pull request #6 from cure/add-standard-config-locations
Add additional locations to look for the config.json file
This commit is contained in:
		
						commit
						481a9a01f6
					
				| @ -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() | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user