Updates
This commit is contained in:
@@ -79,29 +79,15 @@ if [ ! -d "$ADMIN_DIR" ]; then
|
||||
|
||||
STATIC_HOST=${STATIC_HOST_INPUT:-http://localhost:7072}
|
||||
|
||||
# Set Super User Info
|
||||
echo "Enter Super User First Name:"
|
||||
read SUPER_USER_FIRST_NAME
|
||||
echo "Enter Super User Last Name:"
|
||||
read SUPER_USER_LAST_NAME
|
||||
echo "Enter Super User Email:"
|
||||
read SUPER_USER_EMAIL
|
||||
echo "Enter Super User Password:"
|
||||
read SUPER_USER_PASSWORD
|
||||
echo "Enter Super User Username:"
|
||||
read SUPER_USER_USERNAME
|
||||
|
||||
echo "What is the IP address of this admin instance? (default: 172.72.0.24):"
|
||||
echo "What is the IP address of this admin instance? (default: 172.72.0.24, use your server IP address if your database is on a different server):"
|
||||
read ADMIN_SERVER_IP
|
||||
echo "Do you have an external database you want to use? If so provide the server IP address (default: 172.72.0.24):"
|
||||
read DATABASE_SERVER_HOST
|
||||
echo "External Database root user password (required if external database IP is set):"
|
||||
read DATABASE_SERVER_ROOT_PASSWORD
|
||||
|
||||
echo "What local PORT would you like the admin server to run on? (default: 7070):"
|
||||
read ADMIN_PORT_INPUT
|
||||
echo "What local PORT would you like the static server to run on? (default: 7072):"
|
||||
read STATIC_PORT_INPUT
|
||||
echo "Enter Contact Email:"
|
||||
read CONTACT_EMAIL
|
||||
|
||||
DEFAULT_DATABASE_ROOT_PASSWORD=$(generate_random_string 48)
|
||||
DEFAULT_SU_PASS=$(generate_random_string 22)
|
||||
@@ -115,9 +101,9 @@ NEXT_PUBLIC_DSQL_STATIC_HOST=$STATIC_HOST
|
||||
DSQL_SOCKET_DOMAIN=$HOST
|
||||
DSQL_HOST_ENV=prod_prod
|
||||
NEXT_PUBLIC_DSQL_HOST_ENV=prod_prod
|
||||
DSQL_PORT=${ADMIN_PORT_INPUT:-7070}
|
||||
DSQL_PRODUCTION_PORT=${ADMIN_PORT_INPUT:-7070}
|
||||
DSQL_STATIC_SERVER_PORT=${STATIC_PORT_INPUT:-7072}
|
||||
DSQL_PORT=7070
|
||||
DSQL_PRODUCTION_PORT=7070
|
||||
DSQL_STATIC_SERVER_PORT=7072
|
||||
DSQL_STATIC_SERVER_DIR=/static
|
||||
DSQL_SITE_URL=
|
||||
NEXT_PUBLIC_DSQL_REMOTE_SQL_HOST=${ADMIN_SERVER_IP:-172.72.0.24}
|
||||
@@ -140,7 +126,6 @@ DSQL_DB_EXPOSED_PORT=3317
|
||||
DSQL_ENCRYPTION_PASSWORD=$(generate_random_string 64)
|
||||
DSQL_ENCRYPTION_SALT=$(generate_random_string 48)
|
||||
|
||||
DSQL_SU_EMAIL=${SUPER_USER_EMAIL:[email protected]}
|
||||
DSQL_USER_KEY=$(generate_random_string 48)
|
||||
DSQL_SPECIAL_KEY=$(generate_random_string 48)
|
||||
|
||||
@@ -182,13 +167,7 @@ DSQL_USER_LOGIN_KEYS_PATH=/app/apiKeys/allowed-logins
|
||||
DSQL_API_KEYS_PATH=/app/apiKeys/allowed-signatures
|
||||
DSQL_USER_DB_SCHEMA_PATH=/app/jsonData/dbSchemas/users
|
||||
|
||||
DSQL_LOCAL_SU_FIRST_NAME=${SUPER_USER_FIRST_NAME:-dsql}
|
||||
DSQL_LOCAL_SU_LAST_NAME=${SUPER_USER_LAST_NAME:-user}
|
||||
DSQL_LOCAL_SU_EMAIL=${SUPER_USER_EMAIL:[email protected]}
|
||||
DSQL_LOCAL_SU_USERNAME=${SUPER_USER_USERNAME:-dsql_su}
|
||||
DSQL_LOCAL_SU_PASSWORD=${SUPER_USER_PASSWORD:-$DEFAULT_SU_PASS}
|
||||
|
||||
DSQL_CONTACT_EMAIL=${SUPER_USER_EMAIL:[email protected]}
|
||||
DSQL_CONTACT_EMAIL=${CONTACT_EMAIL:[email protected]}
|
||||
DSQL_SSL_DIR=/ssl
|
||||
|
||||
DSQL_DEPLOYMENT_NAME=${DEPLOYMENT_NAME}
|
||||
|
||||
Reference in New Issue
Block a user