mirror of
https://github.com/WeeJeWel/wg-easy.git
synced 2024-11-18 00:19:22 +08:00
wip
This commit is contained in:
parent
d8c4598511
commit
a6da5cc684
23
.github/workflows/lint.yml
vendored
Normal file
23
.github/workflows/lint.yml
vendored
Normal 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
|
@ -1,6 +1,9 @@
|
|||||||
# WireGuard Easy
|
# 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)
|
[![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!
|
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.
|
Finally, run WireGuard. It will automatically start after a reboot.
|
||||||
|
|
||||||
```bash
|
```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.
|
The Web UI will be available on `http://0.0.0.0:51821`. You can create new clients there.
|
||||||
|
@ -15,7 +15,7 @@ services:
|
|||||||
image: weejewel/wg-easy
|
image: weejewel/wg-easy
|
||||||
container_name: wg-easy
|
container_name: wg-easy
|
||||||
volumes:
|
volumes:
|
||||||
- .wg-easy:/etc/wireguard
|
- .:/etc/wireguard
|
||||||
ports:
|
ports:
|
||||||
- "51820:51820/udp"
|
- "51820:51820/udp"
|
||||||
- "51821:51821/tcp"
|
- "51821:51821/tcp"
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
"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": {
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
{
|
{
|
||||||
"extends": "athom",
|
"extends": "athom",
|
||||||
|
"ignorePatterns": [
|
||||||
|
"**/vendor/*.js"
|
||||||
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"consistent-return": "off",
|
"consistent-return": "off",
|
||||||
"no-shadow": "off"
|
"no-shadow": "off"
|
||||||
|
Loading…
Reference in New Issue
Block a user