vanity-server

command module
v0.0.0-...-b258b5d Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 5 Imported by: 0

README

Go Vanity Server

This is a server for vanity URLs for Go packages, written in Go.

How to build?

$ go build -o vanity-server .

How to run?

$ ./vanity-server -h
Usage of ./vanity-server:
  -config string
    	Contains go-import mapping rules (default "/etc/go-vanity/config.json")
  -godocurl string
    	The godoc URL
  -listen string
    	Address where this server listens (default ":8080")

$ ./vanity-server -config "./example-config.json" -listen ":80"

Make sure to put this server behind Nginx or Traefik, and use SSL certificates to secure the endpoints.

There is an example-config.json config file that provides an example of the go-import mapping rules.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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