printf "Enter environment: "
read environment  # adjust this

export FLEETDASH_GATEWAY__TOOLS_FEEDBACK__SERVICE_URL="https://tools-feedback-staging.zooxlabs.com"
export FLEETDASH_GATEWAY__TOOLS_FEEDBACK__SERVICE_VERSION="1"
export FLEETDASH_GATEWAY__ROUTE_STORE__REDIS_HOST="127.0.0.1"
export FLEETDASH_GATEWAY__ROUTE_STORE__REDIS_PORT=6379
export FLEETDASH_GATEWAY__ROBOT_STORE__REDIS_HOST="127.0.0.1"
export FLEETDASH_GATEWAY__ROBOT_STORE__REDIS_PORT=6379
export FLEETDASH_GATEWAY__ADMIN_GATEWAY_STORE__REDIS_HOST="127.0.0.1"
export FLEETDASH_GATEWAY__ADMIN_GATEWAY_STORE__REDIS_PORT=6379
export FLEETDASH_GATEWAY__SERVO_STORE__REDIS_HOST="127.0.0.1"
export FLEETDASH_GATEWAY__SERVO_STORE__REDIS_PORT=6379
export FLEETDASH_GATEWAY__ADMIN_GATEWAY_CLIENT__DEV_URL="https://admin-gateway.dev.maestro.zooxlabs.com"
export FLEETDASH_GATEWAY__ADMIN_GATEWAY_CLIENT__DEV_VERSION="1"
export FLEETDASH_GATEWAY__ADMIN_GATEWAY_CLIENT__STAGING_URL="https://admin-gateway.staging.maestro.zooxlabs.com"
export FLEETDASH_GATEWAY__ADMIN_GATEWAY_CLIENT__STAGING_VERSION="1"
export FLEETDASH_GATEWAY__ADMIN_GATEWAY_CLIENT__PROD_URL="https://admin-gateway.prod.maestro.zooxlabs.com"
export FLEETDASH_GATEWAY__ADMIN_GATEWAY_CLIENT__PROD_VERSION="1"
export FLEETDASH_GATEWAY__ELASTICSEARCH_CLIENT__ES_DEV_URL="https://search-telemetry-dev-x2ul2k6wrmpdp2xl4d6acpwbw4.us-west-2.es.amazonaws.com"
export FLEETDASH_GATEWAY__ELASTICSEARCH_CLIENT__ES_DEV_INDEX="dev_telemetry_v2"
export FLEETDASH_GATEWAY__ELASTICSEARCH_CLIENT__ES_STAGING_URL="https://search-telemetry-dev-x2ul2k6wrmpdp2xl4d6acpwbw4.us-west-2.es.amazonaws.com"
export FLEETDASH_GATEWAY__ELASTICSEARCH_CLIENT__ES_STAGING_INDEX="staging_telemetry_v2"
export FLEETDASH_GATEWAY__ELASTICSEARCH_CLIENT__ES_PROD_URL="https://search-telemetry-prod-u4nx7c6xcwezuahicgdmioxnua.us-west-2.es.amazonaws.com"
export FLEETDASH_GATEWAY__ELASTICSEARCH_CLIENT__ES_PROD_INDEX="prod_telemetry_v2"
export FLEETDASH_GATEWAY_ENV="${environment}"
export VAULT_SP_KEY="$(vault read -field=key secret/fleetdash_gateway_cert)"
export VAULT_JWT_SECRET="$(vault read -field=secret secret/fleetdash/jwt_secret)"
echo ${VAULT_SP_KEY} > fleetdash_gateway/auth/sp-key.key
