docs: Misc updates

Deprecate key_file in favor of key_seed, add a script to generate the secrets
This commit is contained in:
Valentin Tolmer
2024-01-14 22:46:10 +01:00
committed by nitnelave
parent 9f8364ca1a
commit 10609b25e9
3 changed files with 29 additions and 14 deletions
+12
View File
@@ -0,0 +1,12 @@
#! /bin/sh
function print_random () {
LC_ALL=C tr -dc 'A-Za-z0-9!#%&()*+,-./:;<=>?@[\]^_{|}~' </dev/urandom | head -c 32
}
/bin/echo -n "LLDAP_JWT_SECRET='"
print_random
echo "'"
/bin/echo -n "LLDAP_KEY_SEED='"
print_random
echo "'"