Files
PerToolBoxServer/.env.example
2026-03-31 16:03:55 +08:00

44 lines
821 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.
# 应用配置
APP_NAME=PerToolBox
DEBUG=False
ENVIRONMENT=production
SECRET_KEY=change-this-to-32-chars-random-key
# 数据库
DB_HOST=localhost
DB_PORT=3306
DB_USER=toolbox_user
DB_PASSWORD=your_password
DB_NAME=toolbox_db
# Redis
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
# 限流
RATE_LIMIT_ENABLED=True
RATE_LIMIT_REQUESTS=100
RATE_LIMIT_PERIOD=60
# CORS前端域名多个域名用逗号分隔
ALLOWED_ORIGINS=https://your-domain.com
# 短信配置(阿里云接入)
ALIYUN_SMS_ACCESS_KEY_ID=
ALIYUN_SMS_ACCESS_KEY_SECRET=
ALIYUN_SMS_SIGN_NAME=
ALIYUN_SMS_TEMPLATE_CODE=
# SMTP配置
SMTP_HOST=smtp.example.com
SMTP_PORT=465
SMTP_USER=noreply@example.com
SMTP_PASSWORD=
SMTP_FROM=noreply@example.com
# 微信公众号(可选)
WECHAT_APPID=
WECHAT_APPSECRET=
WECHAT_TOKEN=