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>
* feat: generate PASSWORD_HASH on the fly
* remove PASSWORD environment variable in favor of PASSWORD_HASH
* enhance password validity check server function
* update Dockerfile to include building a binary for generating hashed password
* update README with comprehensive Docker usage instructions hash generation
* fix: try fix git action docker build
* Dockerfile: use alpine-base image and install required build packages
* rewrite in js
* move files
* fix: lint errors
* some corrections
---------
Co-authored-by: Philip H <47042125+pheiduck@users.noreply.github.com>
* focus on syncing configuration without shutting down current wg session
refactor build configuration logic to optimize code structure
* enhance SVG icons for better visual appeal (https://github.com/wg-easy/wg-easy/pull/1166#issuecomment-2222418606)
* update the screenshot to reflect the latest UI changes
* fix: prevent logging private key during user creation
* fix: auto formatter
* Revert "i18n.js: german translation"
This reverts commit e4a7ff08c6.
* fix conficts
* feat: load configuration from file
* import json config file & update the config (restore)
* export the config and save it to json file (backup)
* fix: reload configuration
* run linter
* screenshot update
* feat: support more langs
* add translations for French, Spanish, and Italian
* change the wording for better understanding of this feature:
- "import" to "restore"
- "export" to "backup"
* rename functions to reflect these changes
* i18n.js: german translation
* npm: package updates
* fix: icons & buttons view
* update the viewBox of svg elements
* add cursor pointer when hover the restore button
* rebuild the css
---------
Co-authored-by: tetuaoro <tetuaoropro@gmail.com>
Co-authored-by: tetuaoro <65575727+tetuaoro@users.noreply.github.com>
* feat: load configuration from file
* import json config file & update the config (restore)
* export the config and save it to json file (backup)
* fix: reload configuration
* run linter
* screenshot update
* feat: support more langs
* add translations for French, Spanish, and Italian
* change the wording for better understanding of this feature:
- "import" to "restore"
- "export" to "backup"
* rename functions to reflect these changes
* i18n.js: german translation
* npm: package updates
* Revert "import & export configuration"
* npm: package updates
* Revert "import & export configuration"
* fix: auto formatter
* Revert "i18n.js: german translation"
This reverts commit e4a7ff08c6.
* fix conficts
---------
Co-authored-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Co-authored-by: NPM Update Bot <npmupbot@users.noreply.github.com>
* feat: load configuration from file
* import json config file & update the config (restore)
* export the config and save it to json file (backup)
* fix: reload configuration
* run linter
* screenshot update
* feat: support more langs
* add translations for French, Spanish, and Italian
* change the wording for better understanding of this feature:
- "import" to "restore"
- "export" to "backup"
* rename functions to reflect these changes
* i18n.js: german translation
---------
Co-authored-by: Philip H <47042125+pheiduck@users.noreply.github.com>