Files
x-server-mobile/frpc/frpc-dev.ini
T

59 lines
1.3 KiB
INI
Raw Normal View History

# frpc 开发环境配置
# 使用方法: frpc -c frpc-dev.ini
[common]
serverAddr = "8.152.213.143"
serverPort = 7000
auth.method = "token"
auth.token = "6dEjuXXMpJSdBbAQDRzECHmAbeGd"
# X-Server 开发环境代理
[x-server-dev]
type = "http"
localIP = "127.0.0.1"
localPort = 80
# 自定义域名方式(不需要 frps 配置 subdomainHost)
customDomains = ["xsm.dev.hnxinyouhe.com"]
# 启用加密和压缩
transport.useEncryption = true
transport.useCompression = true
# 健康检查
healthCheck.type = "tcp"
healthCheck.intervalS = 30
healthCheck.maxFailed = 3
# ========================================
# 配置说明
# ========================================
#
# frps 服务器配置:
# - 地址: 8.152.213.143:7000
# - HTTP 端口: 8080
# - HTTPS 端口: 8443
#
# 访问方式(二选一):
#
# 方式1: 使用 subdomain(推荐,无需 DNS 配置)
# 访问: http://x-server-dev.8.152.213.143:8080
#
# 方式2: 使用自定义域名
# 1. 修改 customDomains
# 2. 将域名 A 记录指向 8.152.213.143
# 3. 访问: http://your-domain.com
#
# 本地服务端口:
# - OpenResty: 80 (frpc 指向这里)
# - 前端: http://127.0.0.1:5173
# - 后端: http://127.0.0.1:8787
#
# 启动命令:
# frpc -c frpc-dev.ini
#
# 后台运行:
# nohup frpc -c frpc-dev.ini > /dev/null 2>&1 &
#