1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00
dockerfiles/wireguard-ui/README.md

44 lines
685 B
Markdown
Raw Normal View History

2021-12-30 10:17:21 +00:00
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