From 59f8ec928e940e7984fe495777ddced4db3ac70d Mon Sep 17 00:00:00 2001 From: osipovaleks Date: Mon, 5 Oct 2020 21:52:25 +0300 Subject: [PATCH] add HOST to env --- agent/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/config.go b/agent/config.go index c6a3f47..0b40ae6 100644 --- a/agent/config.go +++ b/agent/config.go @@ -32,7 +32,7 @@ const ( //Config is shared for both toml unmarshalling and opts CLI generation. //Defaults are applied on ValidateConfig. type Config struct { - Host string `opts:"help=listening interface, default=0.0.0.0"` + Host string `opts:"help=listening interface, default=0.0.0.0, env=HOST"` Port int `opts:"help=listening port, default=8080, env=PORT"` User string `opts:"help=basic auth username, env=HTTP_USER"` Pass string `opts:"help=basic auth password, env=HTTP_PASS"`