toyohime/README.md
kare.nuorteva a34208f62b README: Add HTTP -> HTTPS redirect
git-svn-id: file:///srv/svn/repo/toyohime/trunk@70 922d331f-388e-da47-97a9-ad700dc0b8b9
2018-01-11 13:54:49 +00:00

1.1 KiB

Vanity Build Status GoDoc

Concepts

  • VCS is Version Control System (such as Git or Mercurial)
  • VCS root is the root path the source code repository (such as github.com/kare)
  • Domain is the internet address where the Go Vanity server is hosted (such as 9fans.net or kkn.fi)
  • Path is the path component of the Go package (such as /cmd/tcpproxy in kkn.fi/cmd/tcpproxy)

Features

  • Redirects browsers to godoc.org
  • Redirects Go tool to VCS
  • Redirects HTTP to HTTPS
  • Automatic configuration of packages:
    • All packages are redirected with full path to vcsroot.
    • Packages whose path is prefixed with "/cmd/" redirect automatically to vcsroot by stripping the "/cmd" prefix from the package path. Example: Redirect request "kkn.fi/cmd/tcpproxy" to "github.com/kare/tcpproxy"

Installation

go get kkn.fi/vanity

Specification