Files
x-server-mobile/frpc/frpc-dev.ini
T
root 8d78e18267 Initial commit: X-Server Mobile enterprise tool system
- Frontend: React 18 + TypeScript + Vite + Ant Design Mobile
- Backend: PHP 8.5 + Webman 2.x + MySQL + Redis
- i18n support: Chinese, English, Russian, Spanish, French
- Approval workflow engine
- Docker development environment
- Feishu integration

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 17:57:25 +08:00

48 lines
1.2 KiB
INI

# frpc 开发环境配置
# 使用方法: frpc -c frpc-dev.ini
[common]
# ======== 请修改以下配置 ========
server_addr = your-frp-server.com
server_port = 7000
token = your-frp-token
# ================================
# 开发环境 API 代理
[x-server-api-dev]
type = http
local_ip = 127.0.0.1
local_port = 8080
custom_domains = api-dev.x-server.your-domain.com
# 启用加密和压缩
use_encryption = true
use_compression = true
# 健康检查
health_check_type = http
health_check_url = /health
health_check_interval_s = 30
health_check_max_failed = 3
# ========================================
# 配置说明
# ========================================
#
# 1. 修改 server_addr 为你的 frp 服务器地址
# 2. 修改 token 为你的 frp 服务器 token
# 3. 修改 custom_domains 为你的开发域名
# 4. 确保 local_port (8080) 与 OpenResty 配置一致
# 5. 将 api-dev.x-server.your-domain.com 的 DNS 指向 frp 服务器
#
# 启动命令:
# frpc -c frpc-dev.ini
#
# 后台运行:
# nohup frpc -c frpc-dev.ini > /dev/null 2>&1 &
#
# 使用 systemd 管理 (推荐):
# sudo cp frpc-dev.service /etc/systemd/system/
# sudo systemctl enable frpc-dev
# sudo systemctl start frpc-dev