Like "gomodules", but url the end.
Host vanity domain imports for Go modules with remote and dynamic configuration.
Before running and configuring, here are some things worth noting:
- Sample configuration can be found at gomodurl.json, which is referenced in the examples below.
- The program caches HTTP responses, so it would be useful although not necessary to bind persistent volume to container's
/home/nonroot/.cache
.
docker run --rm \
-v $HOME/.cache:/home/nonroot/.cache \
-e GOMODURL_CONFIG=https://raw.githubusercontent.com/wilsonehusin/gomodurl/main/gomodurl.json \
-p 8000:8000 \
--it ghcr.io/wilsonehusin/gomodurl:latest
This repository has continuous deployment to Fly, so fly.toml is available for reference.
flyctl launch --image ghcr.io/wilsonehusin/gomodurl