Files
GoProxy/.env.example
isboyjc b1555a702f feat: add SOCKS5 proxy support and enhance configuration
- Introduced SOCKS5 proxy functionality with separate ports for random rotation and lowest latency.
- Updated `.env.example` and `docker-compose.yml` to include SOCKS5 port configurations.
- Enhanced `main.go` to initialize and start SOCKS5 servers alongside existing HTTP proxies.
- Revised README to document new SOCKS5 features, including usage examples and testing scripts.
- Improved proxy selection logic in the storage layer to support SOCKS5 protocol.
2026-03-30 01:02:00 +08:00

34 lines
1.3 KiB
Plaintext
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.
# Docker 容器配置
CONTAINER_NAME=goproxy
# 端口配置
STABLE_PORT=7776 # HTTP 最低延迟代理端口
RANDOM_PORT=7777 # HTTP 随机轮换代理端口
WEBUI_PORT=7778 # WebUI 管理端口
SOCKS5_RANDOM_PORT=7779 # SOCKS5 随机轮换代理端口
SOCKS5_STABLE_PORT=7780 # SOCKS5 最低延迟代理端口
# 地理过滤配置
# 屏蔽指定国家代码的出口代理(逗号分隔,如 CN,RU,KP
# 留空 = 不屏蔽任何国家
# 默认屏蔽中国大陆CN香港HK、澳门MO、台湾TW不受影响
BLOCKED_COUNTRIES=CN
# 代理服务认证配置
# ⚠️ 代理端口默认对外开放,强烈建议启用认证!
# 使用方式curl -x http://username:password@host:port https://example.com
PROXY_AUTH_ENABLED=false # 是否启用代理认证true/false
PROXY_AUTH_USERNAME=proxy # 代理认证用户名
PROXY_AUTH_PASSWORD= # 代理认证密码(留空=不启用认证)
# 示例PROXY_AUTH_PASSWORD=my_secure_password_123
# WebUI 认证配置
WEBUI_PASSWORD=goproxy # ⚠️ 生产环境请修改为强密码
# 数据存储配置(仅 docker run 本地开发需要)
# docker-compose.yml 使用 Named Volume无需此配置
# DATA_DIR=./data
# 时区配置
TZ=Asia/Shanghai