Add FastAPI wechat app: config, wechat handler, run scripts, requirements, env template
This commit is contained in:
1 parent
b193b29e3a
commit
a2185104ad
8 files changed
+249
-7
No files matched your search
@@ -0,0 +1,27 @@
|
||||
"""
|
||||
环境变量模板
|
||||
|
||||
使用方法:
|
||||
1. 复制此文件为 .env
|
||||
2. 填入你的实际值
|
||||
3. .env 不会进 Git(已在 .gitignore 中排除)
|
||||
|
||||
cp .env.example .env
|
||||
"""
|
||||
|
||||
# 微信测试号 - 从 https://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login 获取
|
||||
WECHAT_TOKEN=your_custom_token_here
|
||||
WECHAT_APPID=your_appid_here
|
||||
WECHAT_SECRET=your_secret_here
|
||||
|
||||
# MySQL
|
||||
MYSQL_HOST=127.0.0.1
|
||||
MYSQL_PORT=3306
|
||||
MYSQL_USER=root
|
||||
MYSQL_PASSWORD=your_mysql_password_here
|
||||
MYSQL_DB=wechat_api
|
||||
|
||||
# Redis
|
||||
REDIS_HOST=127.0.0.1
|
||||
REDIS_PORT=6379
|
||||
REDIS_PASSWORD=your_redis_password_here
|
||||
Reference in new issue
Block a user