blob: 92a7e1df568eeeac42e31ae98072279db59af898 [file] [log] [blame]
Tim Windelschmidt5178dd72024-12-04 04:38:45 +01001# Allow request to go.dev for finding the current go sdk versions.
2allow go.dev
3
4# Allow requests to the bazel registry for ensuring we can update our
5# bzlmod deps.
6allow bcr.bazel.build
7
Tim Windelschmidtf5c45102025-02-08 22:30:58 +00008# Allow requests to api.github.com for finding submodule refs.
9allow api.github.com
10
Tim Windelschmidt5178dd72024-12-04 04:38:45 +010011# Allow requests to our mirror and rewrite all urls to use said mirror.
12allow mirror.monogon.dev
Tim Windelschmidtf5c45102025-02-08 22:30:58 +000013rewrite ^((?!go\.dev|bcr\.bazel\.build|api\.github\.com).*) mirror.monogon.dev/$1
Tim Windelschmidt5178dd72024-12-04 04:38:45 +010014
15# Block all other URLs. You can comment out this one to allow a fallback.
16block *