Skip to content

gomodurl: use vanity domains in Go modules with remote and dynamic configuration.

License

Notifications You must be signed in to change notification settings

wilsonehusin/gomodurl

Repository files navigation

gomodurl

Like "gomodules", but url the end.

Host vanity domain imports for Go modules with remote and dynamic configuration.

Usage

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

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

Deploying on Fly.io

This repository has continuous deployment to Fly, so fly.toml is available for reference.

flyctl launch --image ghcr.io/wilsonehusin/gomodurl

About

gomodurl: use vanity domains in Go modules with remote and dynamic configuration.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages