diff --git a/How_to_generate_an_bcrypt_hash.md b/How_to_generate_an_bcrypt_hash.md index 61df3d9..88df7b9 100644 --- a/How_to_generate_an_bcrypt_hash.md +++ b/How_to_generate_an_bcrypt_hash.md @@ -9,16 +9,14 @@ ## Usage with Docker -To generate a bcrypt password hash using Docker, run the following command: +To generate a bcrypt password hash using docker, run the following command : ```sh docker run ghcr.io/wg-easy/wg-easy wgpw YOUR_PASSWORD PASSWORD_HASH='$2b$12$coPqCsPtcFO.Ab99xylBNOW4.Iu7OOA2/ZIboHN6/oyxca3MWo7fW' // litteraly YOUR_PASSWORD ``` -## Important - -Make sure to enclose your password in single quotes when you run a linux host. +*Important* : make sure to enclose your password in single quotes when you run `docker run` command : ```bash $ echo $2b$12$coPqCsPtcF @@ -27,8 +25,4 @@ $ echo "$2b$12$coPqCsPtcF" b2 $ echo '$2b$12$coPqCsPtcF' $2b$12$coPqCsPtcF -``` - -## LICENSE - -[wg-easy license](./LICENSE) +``` \ No newline at end of file diff --git a/package.json b/package.json index c048582..81c45aa 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,10 @@ { "version": "1.0.1", "scripts": { + "sudobuild": "DOCKER_BUILDKIT=1 sudo docker build --tag wg-easy .", "build": "DOCKER_BUILDKIT=1 docker build --tag wg-easy .", "serve": "docker compose -f docker-compose.yml -f docker-compose.dev.yml up", + "sudostart": "sudo 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" } -} +} \ No newline at end of file diff --git a/src/config.js b/src/config.js index ac4b407..9785053 100644 --- a/src/config.js +++ b/src/config.js @@ -1,8 +1,8 @@ 'use strict'; -const { release } = require('./package.json'); +const { release: { version } } = require('./package.json'); -module.exports.RELEASE = release; +module.exports.RELEASE = version; module.exports.PORT = process.env.PORT || '51821'; module.exports.WEBUI_HOST = process.env.WEBUI_HOST || '0.0.0.0'; module.exports.PASSWORD_HASH = process.env.PASSWORD_HASH; diff --git a/src/package.json b/src/package.json index 6383648..5fe8981 100644 --- a/src/package.json +++ b/src/package.json @@ -1,5 +1,7 @@ { - "release": "13", + "release": { + "version": "13" + }, "name": "wg-easy", "version": "1.0.1", "description": "The easiest way to run WireGuard VPN + Web-based Admin UI.", diff --git a/src/www/css/app.css b/src/www/css/app.css index acb974f..9e6f654 100644 --- a/src/www/css/app.css +++ b/src/www/css/app.css @@ -1034,6 +1034,16 @@ video { border-radius: 0.375rem; } +.rounded-l-full { + border-top-left-radius: 9999px; + border-bottom-left-radius: 9999px; +} + +.rounded-r-full { + border-top-right-radius: 9999px; + border-bottom-right-radius: 9999px; +} + .border { border-width: 1px; } @@ -1522,6 +1532,25 @@ video { fill: #4b5563; } +@media not all and (min-width: 768px) { + .max-md\:hidden { + display: none; + } + + .max-md\:border-x-0 { + border-left-width: 0px; + border-right-width: 0px; + } + + .max-md\:border-l-0 { + border-left-width: 0px; + } + + .max-md\:border-r-0 { + border-right-width: 0px; + } +} + @media (min-width: 450px) { .xxs\:flex-row { flex-direction: row; @@ -1649,6 +1678,14 @@ video { } @media (min-width: 768px) { + .md\:mr-2 { + margin-right: 0.5rem; + } + + .md\:block { + display: block; + } + .md\:inline-block { display: inline-block; } @@ -1657,10 +1694,18 @@ video { min-width: 6rem; } + .md\:flex-shrink-0 { + flex-shrink: 0; + } + .md\:gap-4 { gap: 1rem; } + .md\:rounded { + border-radius: 0.25rem; + } + .md\:px-0 { padding-left: 0px; padding-right: 0px; diff --git a/src/www/index.html b/src/www/index.html index 60ee92f..66dc369 100644 --- a/src/www/index.html +++ b/src/www/index.html @@ -93,33 +93,33 @@
{{$t("clients")}}