| Tim Windelschmidt | 5178dd7 | 2024-12-04 04:38:45 +0100 | [diff] [blame] | 1 | # Allow request to go.dev for finding the current go sdk versions. |
| 2 | allow go.dev |
| 3 | |
| 4 | # Allow requests to the bazel registry for ensuring we can update our |
| 5 | # bzlmod deps. |
| 6 | allow bcr.bazel.build |
| 7 | |
| Tim Windelschmidt | f5c4510 | 2025-02-08 22:30:58 +0000 | [diff] [blame^] | 8 | # Allow requests to api.github.com for finding submodule refs. |
| 9 | allow api.github.com |
| 10 | |
| Tim Windelschmidt | 5178dd7 | 2024-12-04 04:38:45 +0100 | [diff] [blame] | 11 | # Allow requests to our mirror and rewrite all urls to use said mirror. |
| 12 | allow mirror.monogon.dev |
| Tim Windelschmidt | f5c4510 | 2025-02-08 22:30:58 +0000 | [diff] [blame^] | 13 | rewrite ^((?!go\.dev|bcr\.bazel\.build|api\.github\.com).*) mirror.monogon.dev/$1 |
| Tim Windelschmidt | 5178dd7 | 2024-12-04 04:38:45 +0100 | [diff] [blame] | 14 | |
| 15 | # Block all other URLs. You can comment out this one to allow a fallback. |
| 16 | block * |