commit
This commit is contained in:
@@ -15,6 +15,13 @@ database:
|
||||
max_open_conns: 100
|
||||
conn_max_lifetime: 3600
|
||||
|
||||
redis:
|
||||
host: 127.0.0.1
|
||||
port: 6379
|
||||
password:
|
||||
db: 0
|
||||
pool_size: 10
|
||||
|
||||
jwt:
|
||||
secret: dev_secret_key_change_in_production
|
||||
expire_hours: 168 # 7天
|
||||
@@ -24,11 +31,11 @@ wechat:
|
||||
app_secret: "69d2a3ddc902b26f82f4b56a6e277f7a" # 微信小程序AppSecret
|
||||
|
||||
xhs:
|
||||
python_service_url: "http://localhost:8000" # Python服务地址
|
||||
python_service_url: "http://localhost:8000" # Python FastAPI服务地址(用于登录和发布,享受浏览器池+预热加速)
|
||||
|
||||
scheduler:
|
||||
enabled: false # 是否启用定时任务
|
||||
publish_cron: "* * * * * *" # 每1小时执行一次(开发环境测试用)
|
||||
publish_cron: "*/5 * * * * *" # 每5秒执行一次
|
||||
max_concurrent: 2 # 最大并发发布数
|
||||
publish_timeout: 300 # 发布超时时间(秒)
|
||||
max_articles_per_user_per_run: 2 # 每轮每个用户最大发文数
|
||||
@@ -39,4 +46,28 @@ scheduler:
|
||||
user_agent: "" # 可选:自定义User-Agent,不填则使用默认
|
||||
proxy_pool:
|
||||
enabled: true # 开发环境启用代理池
|
||||
api_url: "http://api.tianqiip.com/getip?secret=lu29e593&num=1&type=txt&port=1&mr=1&sign=4b81a62eaed89ba802a8f34053e2c964"
|
||||
api_url: "http://api.tianqiip.com/getip?secret=xo0uhiz5&num=1&type=txt&port=1&mr=1&sign=d82157fb70c21bae87437ec17eb3e0aa"
|
||||
|
||||
upload:
|
||||
max_image_size: 5242880 # 5MB (5 * 1024 * 1024)
|
||||
max_file_size: 10485760 # 10MB (10 * 1024 * 1024)
|
||||
image_types: [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
|
||||
static_path: "./static"
|
||||
base_url: "http://localhost:8080"
|
||||
storage_type: "oss" # local(本地存储) 或 oss(阿里云OSS)
|
||||
|
||||
# 阿里云OSS配置(当storageType为oss时生效)
|
||||
oss:
|
||||
endpoint: "https://oss-cn-beijing.aliyuncs.com/" # OSS访问域名
|
||||
access_key_id: "LTAI5tNesdhDH4ErqEUZmEg2" # AccessKey ID
|
||||
access_key_secret: "xZn7WUkTW76TqOLTh01zZATnU6p3Tf" # AccessKey Secret
|
||||
bucket_name: "bxmkb-beijing" # Bucket名称
|
||||
base_path: "wht/" # 文件存储基础路径
|
||||
domain: "" # 自定义域名(可选)
|
||||
|
||||
# ========== 阿里云短信配置 ==========
|
||||
ali_sms:
|
||||
access_key_id: "LTAI5tSMvnCJdqkZtCVWgh8R" # AccessKey ID
|
||||
access_key_secret: "nyFzXyIi47peVLK4wR2qqbPezmU79W" # AccessKey Secret
|
||||
sign_name: "北京乐航时代科技" # 短信签名
|
||||
template_code: "SMS_486210104" # 短信模板CODE
|
||||
|
||||
Reference in New Issue
Block a user