# XXXigCC Proxy 配置指南 ## 配置文件基础 配置文件使用 JSON 格式,位置取决于安装方式: - Debian 包:`/etc/xxxigcc-proxy/config.json` - 二进制版本:`./config.json` ## 主要配置选项 ### 1. 网络监听配置 ```json { "bind": "0.0.0.0:3333" // 监听所有网络接口,端口3333 } ``` ### 2. 矿池配置示例 ```json { "pools": [ { "url": "pool.example.com:3333", "user": "your_wallet_address", "pass": "x" } ] } ``` ### 3. 日志配置 ```json { "log-file": "/var/log/xxxigcc-proxy/proxy.log", "access-log-file": "/var/log/xxxigcc-proxy/access.log" } ``` ## 最佳实践 1. 使用强密码或 token 2. 限制网络访问 3. 定期轮换日志 4. 监控系统资源使用情况 ## 配置验证 ```bash # 检查配置语法 xxxigcc-proxy --config=config.json --test # 查看当前配置 xxxigcc-proxy --config=config.json --print-config ```