From bce3812ca9a00ab1397f002b9477559e7e3cfd11 Mon Sep 17 00:00:00 2001 From: mr Date: Wed, 2 Oct 2024 14:33:17 +0200 Subject: [PATCH] neo oc-datacenter --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index fb0fd56..50e1e93 100644 --- a/main.go +++ b/main.go @@ -21,13 +21,13 @@ func main() { o.GetStringDefault("MONGO_URL", "mongodb://127.0.0.1:27017"), o.GetStringDefault("MONGO_DATABASE", "DC_myDC"), "", - o.GetStringDefault("lokiurl", ""), - o.GetStringDefault("loglevel", "info"), + o.GetStringDefault("LOKI_URL", ""), + o.GetStringDefault("LOG_LEVEL", "info"), ) // Beego init beego.BConfig.AppName = appname - beego.BConfig.Listen.HTTPPort = o.GetIntDefault("port", 8080) + beego.BConfig.Listen.HTTPPort = 8080 beego.BConfig.WebConfig.DirectoryIndex = true beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"