Using Caddy to Indicate GitLab Repository for Go Module Path with Different Domains

from blog Blog on hjr265.me, | ↗ original
The self-hosted GitLab at my company, Furqan Software, is home to all the company Go projects. The domain where Furqan Software’s GitLab is accessible is different from the domain in Go module paths. That means go get doesn’t work out of the box for our Go projects. For example, let’s say you have a Go project with the module path...