mirror of
https://github.com/w0rng/amnezia-wg-easy.git
synced 2025-04-25 12:50:06 +03:00
fix(Doc): fix escaping issue for PASSWORD_HASH in docker-compose.yml
For users using docker-compose.yml, please note that you should not wrap the generated hash password in single quotes. Instead, replace each `$` symbol with two `$$` symbols. For example, for the password 'foobar123', use the following command to generate the hash: `docker run ghcr.io/wg-easy/wg-easy wgpw foobar123` The resulting hash should be used in docker-compose.yml like this: ``` yaml - PASSWORD_HASH=$$2y$$10$$hBCoykrB95WSzuV4fafBzOHWKu9sbyVa34GJr8VV5R/pIelfEMYyG ``` Signed-off-by: cyicz123 <cyicz123@outlook.com>
This commit is contained in:
parent
8921d6c661
commit
a268422e9d
2 changed files with 10 additions and 2 deletions
|
@ -12,7 +12,7 @@ services:
|
|||
- WG_HOST=raspberrypi.local
|
||||
|
||||
# Optional:
|
||||
# - PASSWORD_HASH='$2y$10$hBCoykrB95WSzuV4fafBzOHWKu9sbyVa34GJr8VV5R/pIelfEMYyG' (hash of 'foobar123'; see "How_to_generate_an_bcrypt_hash.md" for generate the hash)
|
||||
# - PASSWORD_HASH=$$2y$$10$$hBCoykrB95WSzuV4fafBzOHWKu9sbyVa34GJr8VV5R/pIelfEMYyG (needs double $$, hash of 'foobar123'; see "How_to_generate_an_bcrypt_hash.md" for generate the hash)
|
||||
# - PORT=51821
|
||||
# - WG_PORT=51820
|
||||
# - WG_CONFIG_PORT=92820
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue