mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-11 18:07:33 +00:00
add env var to specify config location
This commit is contained in:
@@ -25,6 +25,9 @@ func init() {
|
||||
}
|
||||
|
||||
func initConfig() {
|
||||
if cfgFile == "" {
|
||||
cfgFile = os.Getenv("HEADSCALE_CONFIG")
|
||||
}
|
||||
if cfgFile != "" {
|
||||
err := headscale.LoadConfig(cfgFile, true)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user