Go vanity server
Concepts1
- VCS is Version Control System (such as 'git')
- Repo root is the root path the source code repository (such as 'https://github.com/livetribe')
- Domain is the internet address where the Go Vanity server is hosted (such as
m4o.io
orl7e.io
). Domain is deduced from HTTP request. - Path is the path component of the Go package (such as
/cmd/tcpproxy
inkkn.fi/cmd/tcpproxy
)
- Redirects browsers to
pkg.go.dev
, configurable togodoc.org
- Redirects Go tool to VCS
- Redirects HTTP to HTTPS
- Configurable logger which is fully compatible with standard log package. Stdout is default.
go get l7e.io/vanity
1: Inspired by kkn.fi/vanity.