https://github.com/mudler/go-mirror-redirector
Simple mirror redirector in golang
https://github.com/mudler/go-mirror-redirector
Last synced: 9 months ago
JSON representation
Simple mirror redirector in golang
- Host: GitHub
- URL: https://github.com/mudler/go-mirror-redirector
- Owner: mudler
- License: apache-2.0
- Created: 2020-10-16T20:55:12.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-17T08:33:09.000Z (over 5 years ago)
- Last Synced: 2025-10-06T07:55:52.608Z (9 months ago)
- Language: Go
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [](https://quay.io/repository/mocaccino/mirror-redirector) go-mirror-redirector
Simple mirror redirector in golang.
No frills geo-ip based mirror redirector, supports a yaml file as config, in the following format:
```yaml
COUNTRYCODE:
- url1
- url2
AU:
- url2
IT:
- foo
default:
- defaultfallback1
- defaultfallback2
```
you can pass by a config path with `CONFIG` environment variable. You can customize a listening address with `HOST`, the port with `PORT`, and the deployment mode (prod, dev) with `MACARON_ENV`.
There is also a deployment example for Kubernetes in [kube.yaml](https://github.com/mudler/go-mirror-redirector/blob/main/kube.yaml).