Make more configurable

This commit is contained in:
2023-07-07 23:51:55 -04:00
parent f6a8a59ecf
commit a40fc162ff
2 changed files with 29 additions and 5 deletions

View File

@@ -67,7 +67,7 @@ func newServer() (*http.Server, error) {
"HUB_SERVER_KEY_FILE": "",
}
for k, _ := range requiredVars {
for k := range requiredVars {
val, isSet := os.LookupEnv(k)
if !isSet {
return nil, fmt.Errorf("hub: required environment variable is unset: %s", k)