Files
yunzerwebsiteallinone/go/conf/app.conf
T
2026-09-15 17:28:08 +08:00

64 lines
2.8 KiB
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.
appname = server
httpport = 9000
runmode = dev
# 启用请求体复制(允许多次读取请求体)
copyrequestbody = true
# 服务器超时配置(支持大文件上传)
# 0 表示不设置超时限制
ServerTimeOut = 0
# 最大请求体大小(字节),0 表示不限制
MaxMemory = 0
# 最大请求体大小(用于普通请求,10MB)
maxmemory = 10485760
# 数据库配置
# MySQL - 远程连接配置
mysqluser = root
mysqlpass = Lzq920103
# mysqlurls = 10.31.100.4:3306
mysqlurls = 212.64.112.158:5506
mysqldb = go-platform
# ORM配置
orm = mysql
# 配置静态文件目录
# 映射 /static 路径到前端 dist 目录
# StaticDir = /static:../front/dist
# 映射 /uploads 路径到上传文件目录(项目根目录下的 uploads 文件夹)
StaticDir = /uploads:../uploads
# ==================== 租户自有域名绑定 / 自动 HTTPS ====================
# 租户把自己的子域名 CNAME 到这个主机名(该主机名需先 A 记录指向本服务器)
# 例:customdomain_cname_target = sites.yunzer.com.cn
customdomain_cname_target =
# 允许的 A 记录目标 IP(多个用英文逗号分隔)。根域通常不能用 CNAME,只能 A 记录。
# 例:customdomain_a_ips = 1.2.3.4,5.6.7.8
customdomain_a_ips =
# Let's Encrypt 账号邮箱(证书到期提醒、账号注册用)
acme_email =
# ACME 目录地址。留空使用 Let's Encrypt 正式环境。
# 联调时建议先填 staging 避免触发正式环境频控:
# acme_directory = https://acme-staging-v02.api.letsencrypt.org/directory
acme_directory =
# 证书落盘根目录。签发后生成 {ssl_cert_dir}/{域名}/fullchain.pem 与 privkey.pem,
# Nginx 扑底站点按 SNI 读取该目录。Go 进程需要对此目录有写权限。
ssl_cert_dir = /www/wwwroot/ssl-certs
# ==================== 支付模块 ====================
# 渠道敏感参数(商户密钥/私钥/Secret)入库加密密钥:任意随机串即可,代码内部做 SHA-256 派生。
# 注意:更换该值后,历史已保存的渠道参数将无法解密,需在各渠道配置页重新保存一次。
payment_secret_key = f656fe85ed6a1caba9f19966d8cdde46114709969bea5875cde7664d4ad9f535
# 渠道异步回调的对外基址:最终回调地址 = {payment_callback_base}/api/payment/callback/{渠道}
# TODO: 填你自己服务器的公网 HTTPS 域名(如 https://api.yunzer.com.cn),不是申请来的。
# 要求:公网可访问、HTTPS、无鉴权无重定向;微信 JSAPI 还需在商户平台「支付授权目录」登记同一域名。
# 本地开发收不到渠道回调,留空即可(回调地址退化为相对路径 /api/payment/callback/{渠道},由网关补齐域名)。
payment_callback_base = https://api.yunzer.cn