24 lines
577 B
Plaintext
24 lines
577 B
Plaintext
# 数据库连接
|
||
DATABASE_URL="postgresql://postgres:password@localhost:5432/maqt?schema=public"
|
||
|
||
# JWT 密钥(务必修改为随机长字符串)
|
||
JWT_SECRET="change-me-to-a-random-64-char-string"
|
||
|
||
# JWT 过期时间
|
||
JWT_EXPIRES_IN="7d"
|
||
|
||
# 数据加密密钥(32字节,务必修改)
|
||
ENCRYPTION_KEY="0123456789abcdef0123456789abcdef"
|
||
|
||
# 服务端口
|
||
PORT=3001
|
||
|
||
# 环境
|
||
NODE_ENV="development"
|
||
|
||
# CORS 允许的来源 (逗号分隔)
|
||
ALLOWED_ORIGINS="http://localhost:5173,app://.,file://"
|
||
|
||
# 管理员密钥 (用于 /api/admin 端点)
|
||
ADMIN_SECRET="change-me-to-random"
|