mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-07 12:52:52 -05: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