You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
woodbine.nyc/services/authelia/generate-secrets.sh

12 lines
311 B

#!/usr/bin/env sh
set -o errexit
set -o nounset
set -o pipefail
cd ${1:-../secrets/authelia}
for secret in JWT_SECRET SESSION_SECRET STORAGE_PASSWORD STORAGE_ENCRYPTION_KEY; do
test -s $secret && continue
authelia crypto rand --length 64 --charset alphanumeric | cut -d':' -f2 | tr -d ' ' > $secret
done