You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
failed to read /data/coolify/services/d0cg0g8k0g4ossoksowg800s/.env: line 1: unexpected character "/" in variable name "y35924410359244hBCoykrB95WSzuV4fafBzOHWKu9sbyVa34GJr8VV5R/pIelfEMYyG="
Steps to Reproduce
Select the App in wg-easy in the application list
Edit Docker Compose file and add - PASSWORD_HASH=$$2y$$10$$hBCoykrB95WSzuV4fafBzOHWKu9sbyVa34GJr8VV5R/pIelfEMYyG to enable password for the webUI
I have been trying to deploy the app wg-easy. They use some hash for password for example:
# - PASSWORD_HASH=$$2y$$10$$hBCoykrB95WSzuV4fafBzOHWKu9sbyVa34GJr8VV5R/pIelfEMYyG # (needs double $$, hash of 'foobar123'; see "How_to_generate_an_bcrypt_hash.md" for generate the hash)
Is there some way to circumvent this? Otherwise, would it be possible to add some functionality where this would work? So we can have secure web interfaces.
The text was updated successfully, but these errors were encountered:
datadrowner
changed the title
[Bug]: Issue deploying wireguard easy with password
[Bug]: Issue deploying wireguard easy with password: unexpected character "/" in variable name
Jan 28, 2025
However, I need to point out that using the solution in the discussion has some quirks. the password hash will keep popping in the environment variables every time you saved the config. This will pose a problem if you have slash '/' in your password hash as there will be an error when you try to deploy the container.
hash used :-
what you need to do is keep generating the password hash until you get password hash that doesn't contain slash like below
Error Message and Logs
failed to read /data/coolify/services/d0cg0g8k0g4ossoksowg800s/.env: line 1: unexpected character "/" in variable name "y35924410359244hBCoykrB95WSzuV4fafBzOHWKu9sbyVa34GJr8VV5R/pIelfEMYyG="
Steps to Reproduce
Example Repository URL
https://github.com/wg-easy/wg-easy/blob/master/docker-compose.yml
Coolify Version
latest
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Ubuntu 24.04.1 LTS
Additional Information
Hey guys,
I have been trying to deploy the app wg-easy. They use some hash for password for example:
# - PASSWORD_HASH=$$2y$$10$$hBCoykrB95WSzuV4fafBzOHWKu9sbyVa34GJr8VV5R/pIelfEMYyG # (needs double $$, hash of 'foobar123'; see "How_to_generate_an_bcrypt_hash.md" for generate the hash)
Is there some way to circumvent this? Otherwise, would it be possible to add some functionality where this would work? So we can have secure web interfaces.
The text was updated successfully, but these errors were encountered: