mirror of
https://github.com/WeeJeWel/wg-easy.git
synced 2025-02-22 16:15:00 +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
|
||||
|
||||
[](https://github.com/WeeJeWel/wg-easy/actions/workflows/deploy.yml)
|
||||
[](https://hub.docker.com/r/weejewel/wg-easy)
|
||||
[](https://hub.docker.com/r/weejewel/wg-easy)
|
||||
[](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.
|
||||
|
@ -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"
|
||||
|
@ -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": {
|
||||
|
@ -1,5 +1,8 @@
|
||||
{
|
||||
"extends": "athom",
|
||||
"ignorePatterns": [
|
||||
"**/vendor/*.js"
|
||||
],
|
||||
"rules": {
|
||||
"consistent-return": "off",
|
||||
"no-shadow": "off"
|
||||
|
Loading…
x
Reference in New Issue
Block a user