diff --git a/scripts/selfhost-setup.sh b/scripts/selfhost-setup.sh index f017e62..3a078f4 100755 --- a/scripts/selfhost-setup.sh +++ b/scripts/selfhost-setup.sh @@ -108,6 +108,14 @@ random_secret() { fi } +random_urlsafe_secret() { + if command -v openssl >/dev/null 2>&1; then + openssl rand -hex 32 | tr -d '\n' + else + LC_ALL=C tr -dc 'A-Za-z0-9'