init
This commit is contained in:
30
config.yaml
Normal file
30
config.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
# 服务器配置
|
||||
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==" # 上游代理认证密码
|
||||
Reference in New Issue
Block a user