Added KV Config support and updated build scripts
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user