mirror of
https://github.com/h44z/wg-portal.git
synced 2025-08-26 23:01:15 +00:00
fix a few bugs, add instructions for raspberry pi
This commit is contained in:
6
scripts/wg-portal.env
Normal file
6
scripts/wg-portal.env
Normal file
@@ -0,0 +1,6 @@
|
||||
LISTENING_ADDRESS=:8080
|
||||
EXTERNAL_URL=https://vpn.company.com
|
||||
WEBSITE_TITLE=WireGuard VPN
|
||||
COMPANY_NAME=Your Company Name
|
||||
ADMIN_USER=admin
|
||||
ADMIN_PASS=supersecret
|
19
scripts/wg-portal.service
Normal file
19
scripts/wg-portal.service
Normal file
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=WireGuard Portal
|
||||
ConditionPathExists=/opt/wg-portal/wg-portal-amd64
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
|
||||
WorkingDirectory=/opt/wg-portal
|
||||
ExecStart=/opt/wg-portal/wg-portal-amd64
|
||||
EnvironmentFile=/opt/wg-portal/wg-portal.env
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user