Files
in-server/app/main/api/etc/main.yaml
2026-03-18 01:17:00 +08:00

58 lines
1.6 KiB
YAML
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.

Name: main
Host: 0.0.0.0
Port: 8888
# 将 HTTP 超时时间从默认 3s 提高到 60s避免 chromedp 生成 PDF 时过早超时
Timeout: 60000
DataSource: "in:5vg67b3UNHu8@tcp(in_mysql:3306)/in?charset=utf8mb4&parseTime=True&loc=Local"
CacheRedis:
- Host: "in_redis:6379"
Pass: "3m3WsgyCKWqz" # Redis 密码,如果未设置则留空
Type: "node" # 单节点模式
JwtAuth:
AccessSecret: "WUvoIwL-FK0qnlxhvxR9tV6SjfOpeJMpKmY2QvT99lA"
AccessExpire: 2592000
RefreshAfter: 1296000
VerifyCode:
AccessKeyID: ""
AccessKeySecret: ""
EndpointURL: "dysmsapi.aliyuncs.com"
SignName: ""
TemplateCode: ""
ValidTime: 300
ComplaintTemplate: ""
Encrypt:
SecretKey: "ff83609b2b24fc73196aac3d3dfb874f"
SystemConfig:
ThreeVerify: true
WechatH5:
Enabled: false
AppID: ""
AppSecret: ""
WechatMini:
AppID: "" # 小程序的AppID
AppSecret: "" # 小程序的AppSecret
Query:
ShareLinkExpire: 604800 # 7天 = 7 * 24 * 60 * 60 = 604800秒
AdminConfig:
AccessSecret: "jK8nP3qR7tV2xZ5aB9cD1eF6gH4iJ0kL8mN5oP6qR7sT"
AccessExpire: 604800
RefreshAfter: 302400
TaxConfig:
TaxRate: 0.06
TaxExemptionAmount: 0.00
Tianyuanapi:
AccessID: "31b3f879c23b6437"
Key: "f507c58537aac8227b5f4a99cbd317ff"
BaseURL: "https://api.tianyuanapi.com"
Timeout: 60
Authorization:
FileBaseURL: "https://www.mianyang.com/api/v1/auth-docs" # 授权书文件访问基础URL
# PC 报告前端基础地址(用于 chromedp 生成 PDF
ReportPcBaseUrl: "http://124.220.71.142:10578"
# 报告 PDF 本地缓存目录(生产环境)
ReportPdfDir: "./data/report-pdf"