mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: auto generated secret key to only generate hexadecimal characters (#1133)
This commit is contained in:
parent
e526a01295
commit
a16514ed11
3
setup.sh
3
setup.sh
@ -5,6 +5,7 @@ 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
|
||||
|
||||
@ -12,4 +13,4 @@ echo -e "\nNEXT_PUBLIC_API_BASE_URL=http://$1" >> ./.env
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user