mirror of
https://github.com/lldap/lldap.git
synced 2026-07-25 17:58:44 +00:00
docs: Misc updates
Deprecate key_file in favor of key_seed, add a script to generate the secrets
This commit is contained in:
committed by
nitnelave
parent
9f8364ca1a
commit
10609b25e9
Executable
+12
@@ -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 "'"
|
||||
Reference in New Issue
Block a user