This commit is contained in:
Emile Nijssen 2021-05-23 17:07:37 +02:00
parent 03066b5e43
commit 2a92b8bbe6
2 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,7 @@
"version": "1.0.0", "version": "1.0.0",
"scripts": { "scripts": {
"build": "docker build --tag wg-easy .", "build": "docker build --tag 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", "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"
"lint": "eslint src"
}, },
"docker": { "docker": {
"production": { "production": {

View File

@ -5,7 +5,8 @@
"main": "server.js", "main": "server.js",
"scripts": { "scripts": {
"serve": "DEBUG=Server,WireGuard WG_HOST=0.0.0.0 WG_PATH=../config/ nodemon server.js", "serve": "DEBUG=Server,WireGuard WG_HOST=0.0.0.0 WG_PATH=../config/ nodemon server.js",
"serve-with-password": "PASSWORD=wg npm run serve" "serve-with-password": "PASSWORD=wg npm run serve",
"lint": "eslint ."
}, },
"author": "Emile Nijssen", "author": "Emile Nijssen",
"license": "GPL", "license": "GPL",