February 23Feb 23 Author 3 hours ago, jankasten said:Ill try to install the unifi-toolkit on my unraid. I am using cloudflare tunnel to access the webinterface. How can i configure the login? The way in the manual isnt working for me. Password or username is wrong.If you use Local type :>>> Local - For LAN-only access (no authentication, no HTTPS)you better put a reverse proxy in front of it and kill the exported port
February 24Feb 24 I am not using local. Thats why i am asking. How to configure the login credentials. The info in the manual doesnt work for me. Its always wrong credentials. Edited February 24Feb 24 by jankasten
February 24Feb 24 Author Alright,go to advance mode in unraid then click on Show more settings ...then yu will be able to see username and password for productionDont forget the password is a HASH not the actual passwordlet me know
February 24Feb 24 Also with reset_password.sh there is no hash... Should i pick the hash from the .env file? Where do i find this file?
February 24Feb 24 Author 15 minutes ago, jankasten said:How can i get the hash? If i use the setup.sh its not showing the hash.setup.sh put the hash in .env file open a console in the docker instance then cat .envyou should see something like :# Admin credentials (production only)AUTH_USERNAME=adminAUTH_PASSWORD_HASH=$$2b$$13$$YOy2BEFKWY42GdedAgrGC.rQn3AAkqKprt5piHYcBpe61134MDJVA2Note: this is a fake Hash :)
February 24Feb 24 I did this, but doesnt work. Same failure. After reboot the .env file is gone, is this normal?EDIT: i copied the hash in to the template place in unraid Edited February 24Feb 24 by jankasten
February 24Feb 24 Author Here what i would do , but seems to be tested , i will try test this later today .run setup.shmove .env to /app/dataadd a path in the template :let me know if that workedagain i did not test this use case yet . i only test local type Edited February 24Feb 24 by ZappyZap
February 25Feb 25 When I check my UDM-Pro IP Address and the API token it test successfully.When I then try to "save" it I got following error.ValueError: Invalid ENCRYPTION_KEY in .env file. The key must be a valid Fernet key (32 url-safe base64-encoded bytes). Please run ./setup.sh to generate a new key, or generate one manually with: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"I tried to run the ./setup.sh in the dockerSelect deployment type [1-2]: 1✓ Selected: local deploymentStep 2: Generating Encryption Keyℹ Generating secure encryption key...✓ Encryption key generatedStep 3: Writing Configuration✓ Configuration saved to .env✓ Data directory already existsℹ The data/ directory stores the SQLite database. The containerℹ needs write access to /app/data (mapped from ./data on the host).=================================================================Setup Complete!=================================================================But still no success.What am I doing wrong?
February 25Feb 25 Author 6 hours ago, jankasten said:Sadly not, that doesnt work as well...Sadly i do not have contoller external to finish testing , i would open a issue on the github perhaps
February 25Feb 25 Author 2 hours ago, lelei said:When I check my UDM-Pro IP Address and the API token it test successfully.When I then try to "save" it I got following error.ValueError: Invalid ENCRYPTION_KEY in .env file. The key must be a valid Fernet key (32 url-safe base64-encoded bytes). Please run ./setup.sh to generate a new key, or generate one manually with: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"I tried to run the ./setup.sh in the dockerSelect deployment type [1-2]: 1✓ Selected: local deploymentStep 2: Generating Encryption Keyℹ Generating secure encryption key...✓ Encryption key generatedStep 3: Writing Configuration✓ Configuration saved to .env✓ Data directory already existsℹ The data/ directory stores the SQLite database. The containerℹ needs write access to /app/data (mapped from ./data on the host).=================================================================Setup Complete!=================================================================But still no success.What am I doing wrong?to gerenate the key use : docker run --rm python:3-slim sh -c "pip install -q cryptography && python -c 'from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())'"
February 25Feb 25 26 minutes ago, ZappyZap said:to gerenate the key use :In the unifi-toolkit docker console or in the unraid console?
March 8Mar 8 In case anyone else has trouble setting up the password hash, the easiest way I would say is to use this website with the default config of 12 rounds : https://bcrypt-generator.com/
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.