Skip to content

Commit

Permalink
fix: auto generated secret key to only generate hexadecimal characters (
Browse files Browse the repository at this point in the history
  • Loading branch information
pablohashescobar committed May 25, 2023
1 parent e526a01 commit a16514e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ cp ./.env.example ./.env
export LC_ALL=C
export LC_CTYPE=C


# Generate the NEXT_PUBLIC_API_BASE_URL with given IP
echo -e "\nNEXT_PUBLIC_API_BASE_URL=http://$1" >> ./.env

# Generate the SECRET_KEY that will be used by django
echo -e "SECRET_KEY=\"$(tr -dc 'a-z0-9!@#$%^&*(-_=+)' < /dev/urandom | head -c50)\"" >> ./.env

# WEB_URL for email redirection and image saving
echo -e "WEB_URL=$1" >> ./.env
echo -e "WEB_URL=$1" >> ./.env

0 comments on commit a16514e

Please sign in to comment.