Files
danyang-match/infrastructure/.env.example
T

44 lines
1.4 KiB
Bash
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.
# ============================================
# 丹阳公益婚恋服务平台 — 生产环境环境变量
# ============================================
# ⚠️ 此文件为模板,请勿提交真实值到 Git
# ⚠️ 生产密钥必须通过 k8s secret / Vault / 密钥管理服务注入
# ============================================
# --- Database ---
DB_NAME=danyang_match
DB_USER=danyang
DB_PASSWORD_FILE=/run/secrets/db_password # Docker Swarm secret 文件路径
# PostgreSQL 连接参数(如不使用 Docker secrets 则直接设置 DB_PASSWORD)
# DB_PASSWORD=your-secure-password-here
# --- Redis ---
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=your-redis-password-here
# --- MinIO (对象存储) ---
MINIO_ENDPOINT=http://minio:9000
MINIO_ACCESS_KEY=your-minio-access-key
MINIO_SECRET_KEY=your-minio-secret-key
# --- JWT ---
JWT_ACCESS_SECRET=your-256-bit-jwt-access-secret-here-change-in-production
JWT_REFRESH_SECRET=your-256-bit-jwt-refresh-secret-here-change-in-production
# --- Checkin Token ---
CHECKIN_TOKEN_SECRET=your-hmac-checkin-secret-here-change-in-production
# --- AES-256 Encryption Key (32 bytes = 64 hex chars) ---
ENCRYPTION_KEY=32539f3d2fa8123dcec899cc3dbee7347034123a126ac22fcb4702e10c454d50
# --- WeChat Mini Program ---
WECHAT_APP_ID=your-wechat-app-id
WECHAT_APP_SECRET=your-wechat-app-secret
# --- Feature Flags ---
FEATURES_APPEAL_ENABLED=false
# --- Spring Boot ---
SPRING_PROFILES_ACTIVE=production