mirror of https://github.com/wg-easy/wg-easy
committed by
Bernd Storath
7 changed files with 4 additions and 35 deletions
@ -1,11 +1,8 @@ |
|||
{ |
|||
"version": "1.0.1", |
|||
"scripts": { |
|||
"sudobuild": "DOCKER_BUILDKIT=1 sudo docker build --tag wg-easy .", |
|||
"build:docker": "DOCKER_BUILDKIT=1 docker build --tag wg-easy .", |
|||
"serve": "docker compose -f docker-compose.yml -f docker-compose.dev.yml up", |
|||
"sudostart": "sudo docker run --env WG_HOST=0.0.0.0 --name wg-easy --cap-add=NET_ADMIN --cap-add=SYS_MODULE --sysctl=\"net.ipv4.conf.all.src_valid_mark=1\" --mount type=bind,source=\"$(pwd)\"/config,target=/etc/wireguard -p 51820:51820/udp -p 51821:51821/tcp wg-easy", |
|||
"start": "docker run --env WG_HOST=0.0.0.0 --name wg-easy --cap-add=NET_ADMIN --cap-add=SYS_MODULE --sysctl=\"net.ipv4.conf.all.src_valid_mark=1\" --mount type=bind,source=\"$(pwd)\"/config,target=/etc/wireguard -p 51820:51820/udp -p 51821:51821/tcp wg-easy" |
|||
"dev": "docker compose -f docker-compose.dev.yml up", |
|||
"build": "docker build -t wg-easy ." |
|||
}, |
|||
"packageManager": "[email protected]" |
|||
} |
|||
|
@ -1,22 +0,0 @@ |
|||
[Unit] |
|||
Description=Wireguard VPN + Web-based Admin UI |
|||
After=network-online.target nss-lookup.target |
|||
|
|||
[Service] |
|||
Environment="WG_HOST=raspberrypi.local" # Change this to your host's public address or static public ip. |
|||
Environment="PASSWORD=REPLACEME" # When set, requires a password when logging in to the Web UI, to disable add a hashtag |
|||
#Environment="WG_DEFAULT_ADDRESS=10.0.8.x" #Clients IP address range. |
|||
#Environment="WG_DEFAULT_DNS=10.0.8.1, 1.1.1.1" #DNS server clients will use. If set to blank value, clients will not use any DNS. |
|||
#Environment="WG_ALLOWED_IPS=0.0.0.0/0,::/0" #Allowed IPs clients will use. |
|||
#Environment="WG_DEVICE=ens1" #Ethernet device the wireguard traffic should be forwarded through. |
|||
#Environment="PORT=80" #TCP port for Web UI. Default : 51821 |
|||
#Environment="WG_MTU=1420" #The MTU the clients will use. Server uses default WG MTU |
|||
#Environment="WG_PERSISTENT_KEEPALIVE=25" #Value in seconds to keep the "connection" open. If this value is 0, then connections won't be kept alive. |
|||
Type=simple |
|||
RemainAfterExit=no |
|||
ExecStart=/usr/bin/env node /app/server.js |
|||
Restart=on-failure |
|||
RestartSec=1 |
|||
|
|||
[Install] |
|||
WantedBy=multi-user.target |
Loading…
Reference in new issue