Files
mce/.env.example
Victor_Jay e7185f58fb refactor: 连接配置统一迁移至 .env,config.yaml 仅作默认值
- 新增 .env.example 模板(DB/Redis/Server 全部连接信息)
- bindEnvOverride 补全 11 个环境变量绑定(原仅 2 个密码)
- README 和 deployment.md 改为 .env 优先流程
- 移除 systemd EnvironmentFile,统一读 WorkingDirectory/.env
2026-06-22 02:49:24 +08:00

25 lines
514 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ==================================
# MCE 环境变量配置模板
# 复制为 .env 后填入实际值
# cp .env.example .env
# ==================================
# --- 数据库 ---
DATABASE_HOST=127.0.0.1
DATABASE_PORT=5432
DATABASE_USER=metazone
DATABASE_PASSWORD=
DATABASE_DBNAME=metalab_dev
DATABASE_SSLMODE=disable
# --- Redisenabled=false 时以下可忽略) ---
REDIS_ENABLED=true
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
# --- 服务 ---
SERVER_PORT=8080
SERVER_MODE=debug