From 0845b5d0a992d8989fbd92944b559ffb994d0fe9 Mon Sep 17 00:00:00 2001 From: kev Date: Thu, 30 Dec 2021 18:17:21 +0800 Subject: [PATCH] update wireguard-ui --- graphite/README.md | 2 ++ wireguard-ui/README.md | 43 +++++++++++++++++++++++++++++++++ wireguard-ui/docker-compose.yml | 16 ++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 wireguard-ui/README.md create mode 100644 wireguard-ui/docker-compose.yml diff --git a/graphite/README.md b/graphite/README.md index ac598b9..7eeb592 100644 --- a/graphite/README.md +++ b/graphite/README.md @@ -7,6 +7,8 @@ graphite - Chew bubblegum. - Make it easy to store and graph metrics. +![](https://github.com/graphite-project/graphite-web/raw/master/webapp/content/img/overview.png) + ## docker-compose.yml ```yaml diff --git a/wireguard-ui/README.md b/wireguard-ui/README.md new file mode 100644 index 0000000..2b7fd85 --- /dev/null +++ b/wireguard-ui/README.md @@ -0,0 +1,43 @@ +wireguard-ui +============ + +[wireguard-ui][1] is a web user interface to manage your WireGuard setup. + +## up and running + +```bash +$ apt update +$ apt install wireguard +$ docker-compose up -d +$ curl http://127.0.0.1:5000 +$ systemctl enable --now wgui.path +``` + +## systemd integration + +```ini +# /etc/systemd/system/wgui.service + +[Unit] +Description=Restart wireguard service +After=network.target + +[Service] +Type=oneshot +ExecStart=/bin/systemctl restart wg-quick@wg0 +``` + +```ini +# /etc/systemd/system/wgui.path + +[Unit] +Description=Watch wireguard config + +[Path] +PathModified=/etc/wireguard/wg0.conf + +[Install] +WantedBy=multi-user.target +``` + +[1]: https://github.com/ngoduykhanh/wireguard-ui diff --git a/wireguard-ui/docker-compose.yml b/wireguard-ui/docker-compose.yml new file mode 100644 index 0000000..6104c81 --- /dev/null +++ b/wireguard-ui/docker-compose.yml @@ -0,0 +1,16 @@ +version: "3" +services: + wgui: + image: ngoduykhanh/wireguard-ui + command: ["-bind-address", "0.0.0.0:5000"] + volumes: + - ./data:/app/db + - /etc/wireguard:/etc/wireguard + environment: + - WGUI_USERNAME=admin + - WGUI_PASSWORD=admin + - SESSION_SECRET=141a0668-fd9b-4f4e-b5d0-1b0aa8202c5b + network_mode: host + cap_add: + - NET_ADMIN + restart: unless-stopped