init_secrets: script to init .env values

Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
HeshamTB 2022-04-14 07:19:53 +03:00
parent b08a24bedf
commit 7d4f49d0e7
Signed by: Hesham
GPG Key ID: 74876157D199B09E

6
sql_app/init_secrets.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
echo "API_KEY=$(./gen_secret.sh)" >> .env
echo "API_KEY_NAME=big_boy" >> .env
echo "jwt_secret=$(./gen_secret.sh)" >> .env
echo "jwt_algorithm=HS256" >> .env