~muirrum/wg-manager

9e6390b614946f5a910fd59fc97ddf8c8468b6de — Cara Salter 4 months ago efbbd3f
README
1 files changed, 30 insertions(+), 0 deletions(-)

A README.md
A README.md => README.md +30 -0
@@ 0,0 1,30 @@
# wg-manager
[![builds.sr.ht status](https://builds.sr.ht/~muirrum/wg-manager/commits/.build.yml.svg)](https://builds.sr.ht/~muirrum/wg-manager/commits/.build.yml?)

This is the server portion of the Wireguard Management System, which is designed
to make it easier to provision peers across the network.

## Setup
Download artifacts from our latest
[build](https://builds.sr.ht/~muirrum/wg-manager/commits/.build.yml), or clone
the repo and build yourself with `go build`.

Create a `peers.json` file in your working directory with the following format:

```json
{
	"peers": [
		{
			"name": "peer name",
			"public_key": "bad-key",
			"ip": "AllowedIp",
			"endpoint": "optional, for the wireguard server
		}
	]
}
```

You can then run `wg-manager` with the following flags, listed with their
default settings:
- `-port`: The port to listen on, defaults to 3000
- `-bind`: The address/interface to bind to, defaults to `127.0.0.1`