This commit is contained in:
Emile Nijssen 2021-05-23 17:05:24 +02:00
parent d8c4598511
commit a6da5cc684
5 changed files with 33 additions and 3 deletions

23
.github/workflows/lint.yml vendored Normal file
View File

@ -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

View File

@ -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.

View File

@ -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"

View File

@ -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": {

View File

@ -1,5 +1,8 @@
{
"extends": "athom",
"ignorePatterns": [
"**/vendor/*.js"
],
"rules": {
"consistent-return": "off",
"no-shadow": "off"