blob: a16fd606651a42be238724c78e96cfac7c999436 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
[Unit]
Description=A web user interface to manage your WireGuard setup
Documentation=https://github.com/ngoduykhanh/wireguard-ui
ConditionPathExists=/var/lib/wireguard-ui
After=network.target
[Service]
Type=simple
User=wireguard-ui
Group=wireguard-ui
CapabilityBoundingSet=CAP_DAC_READ_SEARCH CAP_NET_ADMIN CAP_NET_RAW
AmbientCapabilities=CAP_DAC_READ_SEARCH CAP_NET_ADMIN CAP_NET_RAW
WorkingDirectory=/var/lib/wireguard-ui
EnvironmentFile=-/etc/wireguard-ui/environment.conf
ExecStart=/usr/bin/wireguard-ui
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
|