HTTP Server providing vanity go import paths.
6.4K
This is the source that runs https://golift.io.
This can be run anywhere, really. Packages and builds for lots of things are provided. The repo auto-builds packages for freebsd, linux, binaries for macOS and windows. A homebrew formula and a Docker image are also available, and easy to use.

Install the Go Lift package repo and Turbo Vanity URLs with this command:
curl -s https://golift.io/repo.sh | sudo bash -s - turbovanityurls
docker pull golift/turbovanityurls
The config file is located at /etc/turbovanityurls/config.yaml, pass that path into your container.
brew install golift/mugs/turbovanityurls
glcoud app deploy after you edit app.yaml.I run it in Docker behind swag (nginx) using a config like this:
server {
# This is the turbovanityurls container.
set $server http://golift:8080;
server_name golift.io www.golift.io code.golift.io;
listen 443 ssl http2;
location @proxy {
include /config/nginx/proxy.conf;
proxy_pass $server$request_uri;
}
location / {
# This points to the 'static' folder in this repo.
root /config/www/golift.io;
try_files $uri @proxy;
}
}
Differences from https://github.com/GoogleCloudPlatform/govanityurls:
go112 #29go115.PathConfig into templates.yaml and template packages.PathConfig to a pointer; can be accessed as a map or a slice now.max_age per path instead of global-only.-l (listen), -t (timeout), and -c (config) flags. #20Incorporated a badge package for data collection and return. In other words this app can collect data from "things" (like the public grafana api) and store that data for later requests. I use this to populate badge/shield data for things like "grafana dashboard download counter" - https://github.com/golift/badgedata. It's 3 lines of code you can pull out real easy. You can also disable badgedata in the config file.
The following fine folks are providing their services, completely free! These service integrations are used for things like storage, building, compiling, distribution and documentation support. This project succeeds because of them. Thank you!
Content type
Image
Digest
sha256:1ffae2e66…
Size
3.5 MB
Last updated
almost 2 years ago
docker pull golift/turbovanityurls:mainPulls:
308
Last week