1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-12 11:14:57 +02:00
dockerfiles/wireguard-ui
2021-12-30 18:17:21 +08:00
..
docker-compose.yml update wireguard-ui 2021-12-30 18:17:21 +08:00
README.md update wireguard-ui 2021-12-30 18:17:21 +08:00

wireguard-ui

wireguard-ui is a web user interface to manage your WireGuard setup.

up and running

$ apt update
$ apt install wireguard
$ docker-compose up -d
$ curl http://127.0.0.1:5000
$ systemctl enable --now wgui.path

systemd integration

# /etc/systemd/system/wgui.service

[Unit]
Description=Restart wireguard service
After=network.target

[Service]
Type=oneshot
ExecStart=/bin/systemctl restart wg-quick@wg0
# /etc/systemd/system/wgui.path

[Unit]
Description=Watch wireguard config

[Path]
PathModified=/etc/wireguard/wg0.conf

[Install]
WantedBy=multi-user.target