updated comments
parent
26df9cc61d
commit
79a7bf174d
|
@ -42,11 +42,11 @@ func LoadConfig() {
|
|||
DaysToKeepLogs: daysToKeepLogs,
|
||||
}
|
||||
|
||||
// load default values if not in docker
|
||||
// load from env file
|
||||
if os.Getenv("DOCKER") == "" {
|
||||
config.Host = os.Getenv("HOST")
|
||||
config.Port = os.Getenv("PORT")
|
||||
} else { // load from docker env
|
||||
} else { // load from system env
|
||||
config.Host = "0.0.0.0"
|
||||
config.Port = "80"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue