A tiny DERP proxy rules generator service. All python stdlib, no external dependencies.
The service exposes a web API, which downloads DERP map and converts it to rule provider format on demand.
Simply run:
PORT=8000 python main.pyOr use docker to compile (using nuitka) and deploy:
docker build -t derp-rules .
docker run -p 8000:8000 derp-rulesTo request the service:
curl localhost:8000To add as a rule provider:
rule-providers:
TailscaleDerp:
type: http
behavior: classical
url: http://localhost:8000
path: ./rule_providers/TailscaleDerp.yaml
interval: 86400vernesong/OpenClash#4434 (comment)
https://www.reddit.com/r/Tailscale/comments/1emtvll/comment/lwratuc/