Files
yunzerwebsiteallinone/go/conf/app.conf
T
2026-09-08 22:18:36 +08:00

54 lines
1.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