skills-market-server/.env.example
hjjjj 6ecd1e2b37 feat(auth): support multiple root admin emails and enhance admin login verification
- Updated the environment variable configuration to allow multiple root admin emails via `ADMIN_EMAILS`, while maintaining compatibility with the legacy `ADMIN_EMAIL`.
- Modified the admin login verification process to check against the list of root admin emails.
- Enhanced the admin role management in the frontend to reflect the new multiple admin structure.
2026-03-27 17:11:05 +08:00

21 lines
681 B
Plaintext

PORT=3001
MONGO_URL=mongodb://localhost:27017
DB_NAME=skills_market
JWT_SECRET=your-jwt-secret-key-change-in-production
JWT_EXPIRES_IN=7d
# Root admins (comma-separated). Legacy ADMIN_EMAIL is still supported.
ADMIN_EMAILS=admin@example.com,ops@example.com
ADMIN_EMAIL=admin@example.com
# 登录白名单:固定验证码,不发邮件,多个邮箱用逗号分隔
WHITELIST_EMAILS=1311711287@qq.com
WHITELIST_CODE=888888
ALIYUN_ACCESS_KEY_ID=LTAI5tP7ufyq46H86SrzmxPL
ALIYUN_ACCESS_KEY_SECRET=PFqfWD4POJnzYjqGv7S0YygemaC8GS
ALIYUN_DM_ACCOUNT_NAME=login@mail.como.video
ALIYUN_DM_TEMPLATE_ID=418198
ALIYUN_DM_DEFAULT_SUBJECT=登录验证码
ALIYUN_DM_ENDPOINT=dm.aliyuncs.com