Go to file
Ross Light c5fd58403f support host directive in config (#7)
This allows for the service to be proxied as a service in a larger site.
2017-07-10 09:50:21 -07:00
.travis.yml Enable non-AppEngine option and add tests (#3) 2017-07-05 13:46:56 -07:00
app.yaml header not required for config 2017-06-26 11:06:51 -07:00
appengine.go support host directive in config (#7) 2017-07-10 09:50:21 -07:00
CONTRIBUTING.md initial commit 2017-06-24 16:39:45 -07:00
handler_test.go support host directive in config (#7) 2017-07-10 09:50:21 -07:00
handler.go support host directive in config (#7) 2017-07-10 09:50:21 -07:00
LICENSE add LICENSE 2017-06-25 15:24:31 -07:00
main.go support host directive in config (#7) 2017-07-10 09:50:21 -07:00
README.md support host directive in config (#7) 2017-07-10 09:50:21 -07:00
vanity.yaml support host directive in config (#7) 2017-07-10 09:50:21 -07:00

Go Vanity URLs

Go Vanity URLs is a simple App Engine Go app that allows you to set custom import paths for your Go packages.

Quickstart

Install gcloud and install Go App Engine component:

$ gcloud components install app-engine-go

Setup a custom domain for your app.

Get the application:

go get -u -d github.com/GoogleCloudPlatform/govanityurls
cd $(go env GOPATH)/src/github.com/GoogleCloudPlatform/govanityurls

Edit vanity.yaml to add any number of git repos. E.g., customdomain.com/portmidi will serve the https://github.com/rakyll/portmidi repo.

paths:
  /portmidi:
    repo: https://github.com/rakyll/portmidi

You can add as many rules as you wish.

Deploy the app:

$ gcloud app deploy

That's it! You can use go get to get the package from your custom domain.

$ go get customdomain.com/portmidi