importalias

command module
v0.0.0-...-8ac83eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2013 License: Apache-2.0 Imports: 21 Imported by: 0

README

GImportAlias is a webservice to manage vanity remote import paths as offerd by the go tool of the Go programming language. Its aim is to keep the necessary effort to maintain your aliases to a minimum.

Build Status

Requirements

The whole apps works on a MongoDB database. Due to certain query techniques (like $elemMatch projections), MongoDB 2.2 is needed.

Quick start

For local development, I usually start the app like this:

$ go run *.go --hostname importalias.surmair.de -l localhost:80 \
  -m mongodb://localhost/importalias --auth-key github:XXXXX:XXXXX \
  --auth-key google:XXXXX:XXXXX --cookie-key XXXXX \
  --auth-config ./auth.config
  • --hostname sets the hostname for which the static content will be served. Every other hostname will be assumed to be an alias request.
  • --auth-key defines a <Provider>:<ClientID>:<Secret> tuple used for OAuth 2.0 login.
  • --cookie-key is the 32-digit hex key used to sign the cookie based sessions.
  • --auth-config contains the configuration (endpoints etc.) for OAuth providers.

For additional flags, set the --help flag.


Version 1.1.4

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL