Files
https-socks5-http/config.yaml
2025-01-10 14:07:07 +08:00

30 lines
1.4 KiB
YAML
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.
# 服务器配置
server:
socks5_port: 1080 # SOCKS5 代理监听端口
http_port: 8080 # HTTP 代理监听端口
bind_address: "0.0.0.0" # 监听地址0.0.0.0表示监听所有网卡
# 日志配置
log:
level: "debug" # 日志级别: debug, info, warn, error
output: [ "console", "file" ] # 日志输出位置: console-控制台, file-文件
file: "proxy.log" # 日志文件路径(相对于程序运行目录)
show_caller: true # 是否显示调用位置
format: "text" # 日志格式: text-文本格式, json-JSON格式
max_size: 2 # 每个日志文件最大大小(MB)
max_backups: 5 # 保留的旧文件数量
max_age: 7 # 保留的最大天数
compress: false # 是否压缩旧文件
# 代理服务器配置
proxy:
buffer_size: 32768 # 数据传输缓冲区大小(字节)
timeout: 300 # 连接超时时间(秒)
enable_metrics: true # 是否启用指标统计
debug: true # 是否启用调试模式
upstream:
enable: true # 是否启用上游代理
type: "https" # 上游代理类型: http, https, socks5
server: "jpgmo101-cdn-route.couldflare-cdn.com:443" # 上游代理服务器地址
username: "mrwdfNTD8M79LCukCieldrqZWqs=" # 上游代理认证用户名
password: "exaxgqkKkd0TAMrCxeonWg==" # 上游代理认证密码