Files
GoProxy/.env.example
isboyjc 0cff1ea6a6 docs: 📝 update environment configuration and data directory documentation
- Revised `.env.example` to clarify data storage configuration for local development and Docker usage.
- Enhanced `DATA_DIRECTORY.md` with detailed instructions on data persistence, backup, and recovery using Docker Named Volumes.
- Updated `docker-compose.yml` to utilize Named Volume for data storage, ensuring data persistence across container lifecycles.
- Adjusted README to reflect changes in data directory management and deployment instructions.
2026-03-29 05:17:56 +08:00

37 lines
1.4 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
# 端口绑定配置
# PROXY_HOST: 代理服务绑定地址
# - 127.0.0.1 = 仅本地访问(推荐,最安全)
# - 0.0.0.0 = 对外开放(如启用需配合认证或防火墙)
PROXY_HOST=127.0.0.1
STABLE_PORT=7776 # 最低延迟代理端口
RANDOM_PORT=7777 # 随机轮换代理端口
# 地理过滤配置
# 屏蔽指定国家代码的出口代理(逗号分隔,如 CN,RU,KP
# 留空 = 不屏蔽任何国家
# 默认屏蔽中国大陆CN香港HK、澳门MO、台湾TW不受影响
BLOCKED_COUNTRIES=CN
# 代理服务认证配置
# ⚠️ 当 PROXY_HOST=0.0.0.0(对外开放)时,强烈建议启用认证!
# 使用方式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_HOST=0.0.0.0 # WebUI 可对外访问(有登录认证保护)
WEBUI_PORT=7778
WEBUI_PASSWORD=goproxy # ⚠️ 生产环境请修改为强密码
# 数据存储配置(仅 docker run 本地开发需要)
# docker-compose.yml 使用 Named Volume无需此配置
# DATA_DIR=./data
# 时区配置
TZ=Asia/Shanghai