mirror of
https://github.com/h44z/wg-portal.git
synced 2026-01-06 20:26:17 +00:00
* docs: enhance binary usage guide and systemd setup (#577) * docs: remove invalid mail templates section from configuration overview
20 lines
398 B
Desktop File
20 lines
398 B
Desktop File
[Unit]
|
|
Description=WireGuard Portal
|
|
ConditionPathExists=/opt/wg-portal/wg-portal-amd64
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
Group=root
|
|
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW
|
|
|
|
Restart=on-failure
|
|
RestartSec=10
|
|
|
|
WorkingDirectory=/opt/wg-portal
|
|
Environment=WG_PORTAL_CONFIG=/opt/wg-portal/config.yml
|
|
ExecStart=/opt/wg-portal/wg-portal-amd64
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |