refactor: 启用 conf.UseEnv 并将 etc 配置统一为 env 占位

This commit is contained in:
zetaloop
2026-05-03 07:14:28 +08:00
parent 87bf86a410
commit 429a1df32a
45 changed files with 181 additions and 435 deletions
+4 -12
View File
@@ -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
+2 -12
View File
@@ -30,15 +30,5 @@ Mail:
InsecureSkipVerify: false
ReplyTo: "${EMAIL_REPLY_TO}"
# Mail:
# Enabled: true
# Host: "smtp.163.com"
# Port: 465
# Username: "churong2646@163.com"
# Password: "GTv6C6qNbv5urAiD"
# FromAddress: "churong2646@163.com"
# FromName: "聚玩"
# UseSSL: true
# UseStartTLS: false
# InsecureSkipVerify: false
# ReplyTo: ""
Log:
Level: debug