File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ cat > worklenz-backend/.env << EOL
7373NODE_ENV=production
7474PORT=3000
7575SESSION_NAME=worklenz.sid
76- SESSION_SECRET=change_me_in_production
77- COOKIE_SECRET=change_me_in_production
76+ SESSION_SECRET=$( openssl rand -base64 48 )
77+ COOKIE_SECRET=$( openssl rand -base64 48 )
7878
7979# CORS
8080SOCKET_IO_CORS=${FRONTEND_URL}
@@ -92,7 +92,7 @@ LOGIN_SUCCESS_REDIRECT="${FRONTEND_URL}/auth/authenticating"
9292DB_HOST=db
9393DB_PORT=5432
9494DB_USER=postgres
95- DB_PASSWORD=password
95+ DB_PASSWORD=$( openssl rand -base64 48 )
9696DB_NAME=worklenz_db
9797DB_MAX_CLIENTS=50
9898USE_PG_NATIVE=true
@@ -123,7 +123,7 @@ SLACK_WEBHOOK=
123123COMMIT_BUILD_IMMEDIATELY=true
124124
125125# JWT Secret
126- JWT_SECRET=change_me_in_production
126+ JWT_SECRET=$( openssl rand -base64 48 )
127127EOL
128128
129129echo " Environment configuration updated for ${HOSTNAME} with" $( [ " $USE_SSL " = " true" ] && echo " HTTPS/WSS" || echo " HTTP/WS" )
@@ -138,4 +138,4 @@ echo "Frontend URL: ${FRONTEND_URL}"
138138echo " API URL: ${HTTP_PREFIX}${HOSTNAME} :3000"
139139echo " Socket URL: ${WS_PREFIX}${HOSTNAME} :3000"
140140echo " MinIO Dashboard URL: ${MINIO_DASHBOARD_URL} "
141- echo " CORS is configured to allow requests from: ${FRONTEND_URL} "
141+ echo " CORS is configured to allow requests from: ${FRONTEND_URL} "
You can’t perform that action at this time.
0 commit comments