From 3c355f111129e0d3f26013da0d3ca28d4f96e774 Mon Sep 17 00:00:00 2001 From: Mirko Mariotti Date: Tue, 29 Oct 2024 10:42:56 +0100 Subject: [PATCH] :wrench: (cmd/main.go) Trigger port from config --- cmd/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/main.go b/cmd/main.go index 4f8f143..40c9ac2 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -78,6 +78,7 @@ func main() { "REDIS_DATABASE": os.Getenv("REDIS_DATABASE"), "REDIS_USERNAME": os.Getenv("REDIS_USERNAME"), "REDIS_PASSWORD": os.Getenv("REDIS_PASSWORD"), + "TRIGGER_PORT": os.Getenv("TRIGGER_PORT"), } c.env = env @@ -181,7 +182,7 @@ func main() { fmt.Println("Starting web server") } s := &http.Server{ - Addr: ":8066", + Addr: ":" + c.env["TRIGGER_PORT"], Handler: http.HandlerFunc(c.handle), }