v1.0.0提交

This commit is contained in:
2026-03-31 16:03:55 +08:00
parent 5f3945ae03
commit dce843fd9d
25 changed files with 1702 additions and 0 deletions

44
.env.example Normal file
View File

@@ -0,0 +1,44 @@
# 应用配置
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=