refactor: 启用 conf.UseEnv 并将 etc 配置统一为 env 占位
This commit is contained in:
@@ -7,21 +7,10 @@ Prometheus:
|
||||
Port: 4001
|
||||
Path: /metrics
|
||||
|
||||
# ===== PROC CONFIG =====
|
||||
#CacheConf:
|
||||
# - Host: "${REDIS_M_HOST}"
|
||||
# Type: node
|
||||
# Pass: "${REDIS_PASSWORD}"
|
||||
# User: "default"
|
||||
# - Host: "${REDIS_S_HOST}"
|
||||
# Type: node
|
||||
# Pass: "${REDIS_PASSWORD}"
|
||||
# User: "default"
|
||||
|
||||
# ===== DEV CONFIG =====
|
||||
CacheConf:
|
||||
- Host: "${REDIS_HOST}:${REDIS_PORT}"
|
||||
Type: node
|
||||
Pass: "${REDIS_PASSWORD}"
|
||||
|
||||
Kmq:
|
||||
Name: email-api
|
||||
@@ -29,3 +18,6 @@ Kmq:
|
||||
- "${KAFKA_BROKER}"
|
||||
Group: "email-api-group"
|
||||
Topic: "email-task"
|
||||
|
||||
Log:
|
||||
Level: debug
|
||||
|
||||
Reference in New Issue
Block a user