Fix documentation about set PASSWORD_HASH
This commit is contained in:
parent
79ed912d44
commit
820a9db6b2
@ -16,13 +16,13 @@ docker run ghcr.io/wg-easy/wg-easy wgpw YOUR_PASSWORD
|
|||||||
PASSWORD_HASH='$2b$12$coPqCsPtcFO.Ab99xylBNOW4.Iu7OOA2/ZIboHN6/oyxca3MWo7fW' // literally YOUR_PASSWORD
|
PASSWORD_HASH='$2b$12$coPqCsPtcFO.Ab99xylBNOW4.Iu7OOA2/ZIboHN6/oyxca3MWo7fW' // literally YOUR_PASSWORD
|
||||||
```
|
```
|
||||||
|
|
||||||
*Important* : make sure to enclose your password in single quotes when you run `docker run` command :
|
*Important* : make sure to enclose your password in **single quotes** when you run `docker run` command :
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ echo $2b$12$coPqCsPtcF
|
$ echo $2b$12$coPqCsPtcF <-- not correct
|
||||||
b2
|
b2
|
||||||
$ echo "$2b$12$coPqCsPtcF"
|
$ echo "$2b$12$coPqCsPtcF" <-- not correct
|
||||||
b2
|
b2
|
||||||
$ echo '$2b$12$coPqCsPtcF'
|
$ echo '$2b$12$coPqCsPtcF' <-- correct
|
||||||
$2b$12$coPqCsPtcF
|
$2b$12$coPqCsPtcF
|
||||||
```
|
```
|
||||||
|
@ -12,7 +12,7 @@ services:
|
|||||||
- WG_HOST=raspberrypi.local
|
- WG_HOST=raspberrypi.local
|
||||||
|
|
||||||
# Optional:
|
# Optional:
|
||||||
# - PASSWORD_HASH=$$2y$$10$$hBCoykrB95WSzuV4fafBzOHWKu9sbyVa34GJr8VV5R/pIelfEMYyG (needs double $$, hash of 'foobar123'; see "How_to_generate_an_bcrypt_hash.md" for generate the hash)
|
# - PASSWORD_HASH='$2y$10$hBCoykrB95WSzuV4fafBzOHWKu9sbyVa34GJr8VV5R/pIelfEMYyG' (hash of 'foobar123'; see "How_to_generate_an_bcrypt_hash.md" for generate the hash)
|
||||||
# - PORT=51821
|
# - PORT=51821
|
||||||
# - WG_PORT=51820
|
# - WG_PORT=51820
|
||||||
# - WG_CONFIG_PORT=92820
|
# - WG_CONFIG_PORT=92820
|
||||||
|
Loading…
x
Reference in New Issue
Block a user