Go Vanity URLs
 
 
 
Go to file
John Olheiser cf984234fd Convert to gpm-style service (#11)
This is a **massively** breaking change from `v0.2.0`.
For consumers there will be no difference, `go-get` and `git-import` are both still supported.
The change will be for the admin regarding how package management works.

Prior to merging, `v0.2.0` should be moved to another branch in case myself or another party wants to continue with that style of service.

This version follows a similar implementation to [gpm](https://gitea.com/jolheiser/gpm) (and indeed, some code was copied nearly line-by-line)

-----

Vanity runs as a service, same as before. However, rather than automatic cron-style updates using a third-party API, now the service owner uses their local `vanity` binary with a matching `token` to...
* `vanity add` a new package
* `vanity update` an existing package
* `vanity remove` a package

This allows much finer control over which packages are in the service and should required almost no downtime once the service is started other than to update the service itself.

As well, it allows mixing of git providers.

<small>There's also an SDK, which is nice to have.</small>

Co-authored-by: jolheiser <john.olheiser@gmail.com>
Reviewed-on: https://gitea.com/jolheiser/vanity/pulls/11
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-committed-by: John Olheiser <john.olheiser@gmail.com>
2021-04-23 11:21:53 +08:00
cmd Convert to gpm-style service (#11) 2021-04-23 11:21:53 +08:00
contrib Convert to gpm-style service (#11) 2021-04-23 11:21:53 +08:00
database Convert to gpm-style service (#11) 2021-04-23 11:21:53 +08:00
docker Convert to gpm-style service (#11) 2021-04-23 11:21:53 +08:00
go-vanity Convert to gpm-style service (#11) 2021-04-23 11:21:53 +08:00
router Convert to gpm-style service (#11) 2021-04-23 11:21:53 +08:00
.gitignore Convert to gpm-style service (#11) 2021-04-23 11:21:53 +08:00
LICENSE Add license 2020-09-12 10:41:21 -05:00
Makefile Convert to gpm-style service (#11) 2021-04-23 11:21:53 +08:00
README.md Convert to gpm-style service (#11) 2021-04-23 11:21:53 +08:00
go.mod Convert to gpm-style service (#11) 2021-04-23 11:21:53 +08:00
go.sum Convert to gpm-style service (#11) 2021-04-23 11:21:53 +08:00
main.go Convert to gpm-style service (#11) 2021-04-23 11:21:53 +08:00

README.md

Vanity

A simple web service to serve vanity Go imports. Feel free to check it out using my instance.

Vanity also supports git-import.

Docker

docker run \
    --env VANITY_DOMAIN=go.domain.tld \
    --env VANITY_TOKEN=<token> \
    --publish 80:7777 \
    --restart always
    jolheiser/vanity:latest

API

Check out the SDK.

License

MIT