15 lines
271 B
Bash
15 lines
271 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
JWT_KEY=$(openssl rand -hex 64)
|
|
JWT_RESET_KEY=$(openssl rand -hex 64)
|
|
ENC_KEY=$(openssl rand -hex 32)
|
|
DB_PASS=$(openssl rand -hex 16)
|
|
|
|
cat << EOF
|
|
JWT_SECRET_KEY=$JWT_KEY
|
|
JWT_RESET_SECRET_KEY=$JWT_RESET_KEY
|
|
ENCRYPTION_KEY=$ENC_KEY
|
|
DB_PASS=$DB_PASS
|
|
EOF
|