Files
proxy-gost/README.md
2026-10-15 15:40:19 +08:00

24 lines
807 B
Markdown
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.
# 代理网关
1. 复制 `.env.example` 为 `.env`,填写环境变量。
2. 执行 `docker compose up -d --build` 启动(需要支持 Docker host 网络)。
3. 通过 API 创建或更新代理服务,在**服务对象顶层**添加:
```json
"bypasses": ["deny", "china"]
```
启用后仅允许访问中国 IP 目标,黑名单优先;中国 IP 列表每 24 小时自动更新。
直接编辑项目根目录的 `deny.txt` 管理黑名单,每行一条,支持 `#` 注释,约 10 秒生效:
```text
.example.com
203.0.113.1
203.0.113.0/24
```
域名请用域名规则封禁,IP/CIDR 规则只匹配 IP 形式的目标。
若编辑器通过替换文件保存,单文件挂载可能仍指向旧文件;此时执行 `docker compose up -d --force-recreate gost` 重新挂载。