Files
2026-07-28 22:49:28 +08:00

25 lines
631 B
Markdown

# Bridge Proxy
Small Go transparent proxy for subscription links blocked by client IP region.
## Run
```bash
BRIDGE_TOKEN=your-token go run .
```
Request format:
```text
http://host:8080/your-token?url=https%3A%2F%2Fsub.sslinks.co.in%2Fem9knZQ6ximoi9hhnKzJT3FayVZSb2PxKmPWzhzk%3Ftoken%3Da8483f280b990786fe607e04d2724dd2
```
The service forwards the request to `url`, returns the upstream status, response headers, and body, and strips client IP forwarding headers before sending the upstream request.
## Docker
```bash
docker build -t bridge-proxy .
docker run --rm -p 8080:8080 -e BRIDGE_TOKEN=your-token bridge-proxy
```