From a6da5cc684153e8611985d0a573db4aeb54b85bb Mon Sep 17 00:00:00 2001 From: Emile Nijssen Date: Sun, 23 May 2021 17:05:24 +0200 Subject: [PATCH] wip --- .github/workflows/lint.yml | 23 +++++++++++++++++++++++ README.md | 5 ++++- docker-compose.yml | 2 +- package.json | 3 ++- src/.eslintrc.json | 3 +++ 5 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..fd473bf --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,23 @@ +name: Lint + +on: + push: + branches: + - master + - production + pull_request: + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '14' + + - run: | + cd src + npm ci + npm run lint diff --git a/README.md b/README.md index 0c24aa1..5e8daaa 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # WireGuard Easy [![Build & Publish Docker Image to Docker Hub](https://github.com/WeeJeWel/wg-easy/actions/workflows/deploy.yml/badge.svg?branch=production)](https://github.com/WeeJeWel/wg-easy/actions/workflows/deploy.yml) +[![Docker](https://img.shields.io/docker/v/weejewel/wg-easy/latest)](https://hub.docker.com/r/weejewel/wg-easy) +[![Docker](https://img.shields.io/docker/pulls/weejewel/wg-easy.svg)](https://hub.docker.com/r/weejewel/wg-easy) +[![Sponsor](https://img.shields.io/github/sponsors/weejewel)](https://github.com/sponsors/WeeJeWel) You have found the easiest way to install & manage WireGuard on any Linux host! @@ -51,7 +54,7 @@ Optionally, set a Web UI password by uncommenting `PASSWORD=foobar123` and chang Finally, run WireGuard. It will automatically start after a reboot. ```bash -$ docker-compose up +$ docker-compose up --detach ``` The Web UI will be available on `http://0.0.0.0:51821`. You can create new clients there. diff --git a/docker-compose.yml b/docker-compose.yml index 92ed610..09ec7ff 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,7 +15,7 @@ services: image: weejewel/wg-easy container_name: wg-easy volumes: - - .wg-easy:/etc/wireguard + - .:/etc/wireguard ports: - "51820:51820/udp" - "51821:51821/tcp" diff --git a/package.json b/package.json index bb62b5d..452856e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,8 @@ "version": "1.0.0", "scripts": { "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": { "production": { diff --git a/src/.eslintrc.json b/src/.eslintrc.json index f0d4a77..4652c8d 100644 --- a/src/.eslintrc.json +++ b/src/.eslintrc.json @@ -1,5 +1,8 @@ { "extends": "athom", + "ignorePatterns": [ + "**/vendor/*.js" + ], "rules": { "consistent-return": "off", "no-shadow": "off"