Fix secret command to avoid non-ascii alphanumerics

This commit is contained in:
Gabriel Miranda
2023-12-30 23:10:37 -05:00
committed by Steve Chavez
parent f95c5127df
commit efcf36d970
+1 -1
View File
@@ -41,7 +41,7 @@ Let's create a password and provide it to PostgREST. Think of a nice long one, o
export LC_CTYPE=C
# read random bytes and keep only alphanumerics
echo "jwt-secret = \"$(< /dev/urandom tr -dc A-Za-z0-9 | head -c32)\"" >> tutorial.conf
echo "jwt-secret = \"$(LC_ALL=C tr -dc 'A-Za-z0-9' </dev/urandom | head -c32)\"" >> tutorial.conf
check the :code:`tutorial.conf` (created in the previous tutorial) the line with the password: