Files

36 lines
1.1 KiB
INI
Raw Permalink Normal View History

# frpc 配置文件 - 用于将本地服务暴露到公网
# 使用方法: frpc -c frpc.ini
[common]
# frp 服务器地址(需要替换为你的 frp 服务器地址)
server_addr = your-frp-server.com
server_port = 7000
# 认证令牌(需要替换为你的 frp 服务器 token)
token = your-frp-token
# API 服务代理
[x-server-api]
type = http
local_ip = 127.0.0.1
local_port = 8787
custom_domains = api.x-server.your-domain.com
# 如果使用 HTTPS,可以启用以下配置
# use_encryption = true
# use_compression = true
# 可选:配置 HTTP 基本认证
# http_user = your-username
# http_pwd = your-password
# V2ray/WebSocket 等其他协议可以添加更多配置
# ========================================
# 配置说明
# ========================================
# 1. 需要先将 api.x-server.your-domain.com 的 DNS 解析指向 frp 服务器
# 2. frp 服务器需要配置域名白名单或使用泛域名
# 3. 本地需要安装 OpenResty/Nginx 并配置反向代理
# 4. 飞书回调 URL 格式: https://api.x-server.your-domain.com/api/v1/auth/feishu-login