Files
seclusion/apps/api/.env
charilezhou d9673e2ba3 chore: 更新配置和依赖
- 添加 MinIO 和邮件服务相关环境变量
- 添加 @nestjs-modules/mailer, minio, multer 等依赖
- 更新 app.module.ts 注册新模块
- docker-compose 添加 MinIO 服务配置

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 12:36:20 +08:00

41 lines
1.1 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.

DATABASE_URL="postgresql://dev:dev@localhost:5432/seclusion"
# ----- Redis 配置 -----
REDIS_URL="redis://localhost:6379"
JWT_SECRET="your-super-secret-key-change-in-production"
JWT_EXPIRES_IN="7d"
PORT=4000
NODE_ENV=development
# ----- 加密配置 -----
# 是否启用通信加密
ENABLE_ENCRYPTION=false
# AES-256-GCM 加密密钥 (32 字节 Base64 编码)
# 开发环境默认密钥 (仅用于开发测试,生产环境必须更换)
ENCRYPTION_KEY=dGhpc2lzYXRlc3RrZXlmb3JkZXZlbG9wbWVudG9ubHk
# ----- SMTP 邮件配置 -----
# SMTP 服务器地址
SMTP_HOST=smtpdm.aliyun.com
# SMTP 端口(通常 587 或 465
SMTP_PORT=465
# 是否使用 SSL/TLS端口 465 时通常为 true
SMTP_SECURE=true
# SMTP 用户名
SMTP_USER=system@notice.seclusion.dev
# SMTP 密码或应用专用密码
SMTP_PASS=nIZvj5RPuvyB2h
# 发件人地址
SMTP_FROM=system@notice.seclusion.dev
# ----- MinIO 对象存储配置 -----
MINIO_ENDPOINT=localhost
MINIO_PORT=9000
MINIO_USE_SSL=false
MINIO_ACCESS_KEY=minioadmin
MINIO_SECRET_KEY=minioadmin
MINIO_BUCKET=seclusion
MINIO_PUBLIC_URL=