mirror of https://github.com/wg-easy/wg-easy
committed by
GitHub
22 changed files with 209 additions and 214 deletions
@ -0,0 +1,11 @@ |
|||
# To get started with Dependabot version updates, you'll need to specify which |
|||
# package ecosystems to update and where the package manifests are located. |
|||
# Please see the documentation for all configuration options: |
|||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates |
|||
|
|||
version: 2 |
|||
updates: |
|||
- package-ecosystem: "JavaScript" "HTML" "Docker" # See documentation for possible values |
|||
directory: "/" # Location of package manifests |
|||
schedule: |
|||
interval: "weekly" |
|||
@ -0,0 +1,72 @@ |
|||
# For most projects, this workflow file will not need changing; you simply need |
|||
# to commit it to your repository. |
|||
# |
|||
# You may wish to alter this file to override the set of languages analyzed, |
|||
# or to provide custom queries or build logic. |
|||
# |
|||
# ******** NOTE ******** |
|||
# We have attempted to detect the languages in your repository. Please check |
|||
# the `language` matrix defined below to confirm you have the correct set of |
|||
# supported CodeQL languages. |
|||
# |
|||
name: "CodeQL" |
|||
|
|||
on: |
|||
push: |
|||
branches: [ "main" ] |
|||
pull_request: |
|||
# The branches below must be a subset of the branches above |
|||
branches: [ "main" ] |
|||
schedule: |
|||
- cron: '30 2 * * 3' |
|||
|
|||
jobs: |
|||
analyze: |
|||
name: Analyze |
|||
runs-on: ubuntu-latest |
|||
permissions: |
|||
actions: read |
|||
contents: read |
|||
security-events: write |
|||
|
|||
strategy: |
|||
fail-fast: false |
|||
matrix: |
|||
language: [ 'javascript' ] |
|||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] |
|||
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support |
|||
|
|||
steps: |
|||
- name: Checkout repository |
|||
uses: actions/checkout@v3 |
|||
|
|||
# Initializes the CodeQL tools for scanning. |
|||
- name: Initialize CodeQL |
|||
uses: github/codeql-action/init@v2 |
|||
with: |
|||
languages: ${{ matrix.language }} |
|||
# If you wish to specify custom queries, you can do so here or in a config file. |
|||
# By default, queries listed here will override any specified in a config file. |
|||
# Prefix the list here with "+" to use these queries and those in the config file. |
|||
|
|||
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs |
|||
# queries: security-extended,security-and-quality |
|||
|
|||
|
|||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). |
|||
# If this step fails, then you should remove it and run the build manually (see below) |
|||
- name: Autobuild |
|||
uses: github/codeql-action/autobuild@v2 |
|||
|
|||
# ℹ️ Command-line programs to run using the OS shell. |
|||
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
|||
|
|||
# If the Autobuild fails above, remove it and uncomment the following three lines. |
|||
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. |
|||
|
|||
# - run: | |
|||
# echo "Run, Build Application using script" |
|||
# ./location_of_script_within_repo/buildscript.sh |
|||
|
|||
- name: Perform CodeQL Analysis |
|||
uses: github/codeql-action/analyze@v2 |
|||
@ -1,38 +0,0 @@ |
|||
name: Build & Publish Docker Image to Docker Hub |
|||
|
|||
on: |
|||
workflow_dispatch: |
|||
schedule: |
|||
- cron: "0 12 * * *" |
|||
|
|||
jobs: |
|||
deploy: |
|||
name: Build & Deploy |
|||
runs-on: ubuntu-latest |
|||
steps: |
|||
- uses: actions/checkout@v2 |
|||
with: |
|||
ref: production |
|||
|
|||
- name: Set up QEMU |
|||
uses: docker/setup-qemu-action@v1 |
|||
|
|||
- name: Set up Docker Buildx |
|||
uses: docker/setup-buildx-action@v1 |
|||
|
|||
- name: Login to DockerHub |
|||
uses: docker/login-action@v1 |
|||
with: |
|||
username: ${{ secrets.DOCKER_USERNAME }} |
|||
password: ${{ secrets.DOCKER_PASSWORD }} |
|||
|
|||
# Set environment variables |
|||
- run: echo RELEASE=$(cat ./src/package.json | jq -r .release) >> $GITHUB_ENV |
|||
|
|||
# Build & Publish |
|||
- name: Build & Publish Docker Image |
|||
uses: docker/build-push-action@v2 |
|||
with: |
|||
push: true |
|||
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8 |
|||
tags: weejewel/wg-easy:nightly, weejewel/wg-easy:${{ env.RELEASE }}-nightly |
|||
@ -1,40 +0,0 @@ |
|||
name: Build & Publish Docker Image to Docker Hub |
|||
|
|||
on: |
|||
workflow_dispatch: |
|||
push: |
|||
branches: |
|||
- production |
|||
- production/** |
|||
|
|||
jobs: |
|||
deploy: |
|||
name: Build & Deploy |
|||
runs-on: ubuntu-latest |
|||
steps: |
|||
- uses: actions/checkout@v2 |
|||
with: |
|||
ref: production |
|||
|
|||
- name: Set up QEMU |
|||
uses: docker/setup-qemu-action@v1 |
|||
|
|||
- name: Set up Docker Buildx |
|||
uses: docker/setup-buildx-action@v1 |
|||
|
|||
- name: Login to DockerHub |
|||
uses: docker/login-action@v1 |
|||
with: |
|||
username: ${{ secrets.DOCKER_USERNAME }} |
|||
password: ${{ secrets.DOCKER_PASSWORD }} |
|||
|
|||
# Set environment variables |
|||
- run: echo RELEASE=$(cat ./src/package.json | jq -r .release) >> $GITHUB_ENV |
|||
|
|||
# Build & Publish |
|||
- name: Build & Publish Docker Image |
|||
uses: docker/build-push-action@v2 |
|||
with: |
|||
push: true |
|||
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8 |
|||
tags: weejewel/wg-easy:latest, weejewel/wg-easy:${{ env.RELEASE }} |
|||
@ -1,23 +0,0 @@ |
|||
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,3 +1,9 @@ |
|||
/config |
|||
/wg0.conf |
|||
/wg0.json |
|||
/wg0.json |
|||
.DS_Store |
|||
|
|||
# General |
|||
.DS_Store |
|||
.AppleDouble |
|||
.LSOverride |
|||
@ -0,0 +1,21 @@ |
|||
MIT License |
|||
|
|||
Copyright (c) 2022 Gyarbij |
|||
|
|||
Permission is hereby granted, free of charge, to any person obtaining a copy |
|||
of this software and associated documentation files (the "Software"), to deal |
|||
in the Software without restriction, including without limitation the rights |
|||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|||
copies of the Software, and to permit persons to whom the Software is |
|||
furnished to do so, subject to the following conditions: |
|||
|
|||
The above copyright notice and this permission notice shall be included in all |
|||
copies or substantial portions of the Software. |
|||
|
|||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
|||
SOFTWARE. |
|||
@ -1,11 +0,0 @@ |
|||
**You may:** |
|||
|
|||
* Use this software for yourself; |
|||
* Use this software for a company; |
|||
* Modify this software, as long as you: |
|||
* Publish the changes on GitHub as an open-source & linked fork; |
|||
* Don't remove any links to the original project or donation pages; |
|||
|
|||
**You may not:** |
|||
|
|||
* Use this software in a commercial product without a license from the original author; |
|||
@ -0,0 +1,12 @@ |
|||
# Security Policy |
|||
|
|||
## Supported Versions |
|||
|
|||
The only version supported is the current builds located at [Docker Hub](https://hub.docker.com/r/gyarbij/wireui/tags) |
|||
|
|||
|
|||
## Reporting a Vulnerability |
|||
|
|||
To report a vulnerability, email [email protected] |
|||
|
|||
If it's something you can fix, please feel free to open a pull request. |
|||
@ -1,10 +1,10 @@ |
|||
version: "3.8" |
|||
services: |
|||
wg-easy: |
|||
image: wg-easy |
|||
image: wireui |
|||
command: npm run serve |
|||
volumes: |
|||
- ./src/:/app/ |
|||
environment: |
|||
# - PASSWORD=p |
|||
- WG_HOST=192.168.1.233 |
|||
- WG_HOST=dev.wireui.com |
|||
|
|||
@ -1,9 +1,14 @@ |
|||
{ |
|||
"1": "Initial version. Enjoy!", |
|||
"2": "You can now rename a client, and update the address. Enjoy!", |
|||
"3": "Many improvements and small changes. Enjoy!", |
|||
"4": "Now with pretty charts for client's network speed. Enjoy!", |
|||
"5": "Many small improvements & feature requests. Enjoy!", |
|||
"6": "Many small performance improvements & bug fixes. Enjoy!", |
|||
"7": "Improved the look & performance of the upload/download chart." |
|||
} |
|||
|
|||
# Changelog |
|||
|
|||
## v1.1.0-dev |
|||
|
|||
- Improved the look & performance of the upload/download chart. |
|||
|
|||
## v1.0.0 |
|||
|
|||
- Minify and syntax updates as well as UI changes. |
|||
|
|||
## v0.0.1 |
|||
|
|||
- Initial build |
|||
@ -1,8 +1,8 @@ |
|||
{ |
|||
"version": "1.0.0", |
|||
"scripts": { |
|||
"build": "DOCKER_BUILDKIT=1 docker build --tag wg-easy .", |
|||
"build": "DOCKER_BUILDKIT=1 docker build --tag wireui .", |
|||
"serve": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml up", |
|||
"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 wireui --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 wireui" |
|||
} |
|||
} |
|||
|
After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
Loading…
Reference in new issue