vanityserver

command
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: BSD-3-Clause, ISC Imports: 15 Imported by: 0

README

vanityserver

Runs a barebones vanity server over HTTP.

Usage

./vanityserver [-index] fqdn [repo file]

The "-index" flag enables an index page at "/" that lists all repos hosted on this server.

If repo file is not given, "./repos" is used. The file has the following format:

pkgroot  vcsScheme://vcsHost/user/repo
pkgroot2 vcsScheme://vcsHost/user/repo2

vcsHost is either a Gogs server (that's what I use) or github.com. I'm open to supporting other VCSs but I'm not sure what that would look like.

Documentation

Overview

Runs a barebones vanity server over HTTP.

Usage

./vanityserver [-index] [-nohealthz] fqdn [repo file]

The "-index" flag enables an index page at "/" that lists all repos hosted on this server.

The "-nohealthz" flag disables the "/healthz" endpoint that returns a 200 OK when everything is OK.

The "-watch" flag watches the repo file for changes. When it is updated, the updated version will be used for serving.

If repo file is not given, "./repos" is used. The file has the following format:

pkgroot  vcsScheme://vcsHost/user/repo
pkgroot2 vcsScheme://vcsHost/user/repo2

vcsHost is either a Gogs server (that's what I use) or github.com. I'm open to supporting other VCSs but I'm not sure what that would look like.

Jump to

Keyboard shortcuts

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