Added KV Config support and updated build scripts

This commit is contained in:
PB
2022-12-05 21:34:45 +01:00
parent 38d7d1ab86
commit 09ecea4d1a
9 changed files with 73 additions and 22 deletions

View File

@@ -22,6 +22,7 @@ const (
defEventBusURL = "amqp://guest:guest@api-eventbus:5672"
ebEventsExchange = "api-events"
ebEventsQueue = "identity-svc"
defKVNmspc = "dev.egommerce/service/identity-svc"
)
func main() {
@@ -40,6 +41,7 @@ func main() {
c.DbURL = config.GetEnv("DATABASE_URL", defDbURL)
c.EventBusURL = config.GetEnv("EVENTBUS_URL", defEventBusURL)
c.EventBusExchange = ebEventsExchange
c.KVNamespace = config.GetEnv("APP_KV_NAMESPACE", defKVNmspc)
logHost, logPort := fluentd.ParseAddr(c.LoggerAddr)
logger := fluentd.NewLogger(c.GetAppFullName(), logHost, logPort)