blob: 92a7e1df568eeeac42e31ae98072279db59af898 [file] [log] [blame]
# Allow request to go.dev for finding the current go sdk versions.
allow go.dev
# Allow requests to the bazel registry for ensuring we can update our
# bzlmod deps.
allow bcr.bazel.build
# Allow requests to api.github.com for finding submodule refs.
allow api.github.com
# Allow requests to our mirror and rewrite all urls to use said mirror.
allow mirror.monogon.dev
rewrite ^((?!go\.dev|bcr\.bazel\.build|api\.github\.com).*) mirror.monogon.dev/$1
# Block all other URLs. You can comment out this one to allow a fallback.
block *