diff options
| author | Ahmed AbdelHalim <[email protected]> | 2025-09-09 21:46:50 +0200 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2025-09-09 21:59:52 +0200 |
| commit | e3aed3022ff51a5f3b05cc5b8a5076199075c6f1 (patch) | |
| tree | cb418878a4f7c000b3c4784c93bc6b8d8faace16 /deployment/wg-portal.service | |
| parent | 81ca75de8ea7b010203a2036fc02779da8fdadfd (diff) | |
Add install/uninstall scripts
Diffstat (limited to 'deployment/wg-portal.service')
| -rw-r--r-- | deployment/wg-portal.service | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/deployment/wg-portal.service b/deployment/wg-portal.service new file mode 100644 index 0000000..23d9dad --- /dev/null +++ b/deployment/wg-portal.service @@ -0,0 +1,39 @@ +[Unit] +Description=WireGuard Portal Web Interface +Documentation=https://git.sr.ht/~a14m/wg-portal +After=network-online.target +Wants=network-online.target +Requires=network.target + +[Service] +Type=simple +User=wg-portal +Group=wg-portal +ExecStart=/etc/wg-portal/wg-portal +WorkingDirectory=/etc/wg-portal +Restart=always +RestartSec=5 +TimeoutStartSec=30 +TimeoutStopSec=30 + +# Security hardening +NoNewPrivileges=true +ProtectSystem=strict +ProtectHome=true +ReadWritePaths=/etc/wireguard +PrivateTmp=true +PrivateDevices=true +ProtectKernelTunables=true +ProtectKernelModules=true +ProtectControlGroups=true +RestrictSUIDSGID=true +RestrictRealtime=true +LockPersonality=true + +# Logging +StandardOutput=journal +StandardError=journal +SyslogIdentifier=wg-portal + +[Install] +WantedBy=multi-user.target |
