* temp commit * using onsubmit to continue using action on form * added recaptcha site key to env example file * moved the recaptcha lib loading logic to signup page * removed unnecessary edit * handle the case where the recaptcha token is not provided as env var * added proper env var config for client * recaptcha config for ansible * recaptcha config for heroku * recaptcha config for k8s * updated app.json * fixed the typos * added more description for env vars * removed api key * minor typo fix
37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
set -o nounset
|
|
|
|
mongo_protocol="$1"
|
|
mongo_host="$2"
|
|
encoded_mongo_root_user="$3"
|
|
encoded_mongo_root_password="$4"
|
|
mongo_db="$5"
|
|
disable_telemetry="$6"
|
|
|
|
cat<<EOF
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: application-config
|
|
data:
|
|
APPSMITH_MAIL_ENABLED: "false"
|
|
# APPSMITH_MAIL_FROM: ""
|
|
# APPSMITH_REPLY_TO: ""
|
|
# APPSMITH_MAIL_HOST: ""
|
|
# APPSMITH_MAIL_PORT: ""
|
|
# APPSMITH_MAIL_SMTP_TLS_ENABLED: ""
|
|
# APPSMITH_MAIL_USERNAME: ""
|
|
# APPSMITH_MAIL_PASSWORD: ""
|
|
# APPSMITH_MAIL_SMTP_AUTH: ""
|
|
# APPSMITH_OAUTH2_GOOGLE_CLIENT_ID: ""
|
|
# APPSMITH_OAUTH2_GOOGLE_CLIENT_SECRET: ""
|
|
# APPSMITH_OAUTH2_GITHUB_CLIENT_ID: ""
|
|
# APPSMITH_OAUTH2_GITHUB_CLIENT_SECRET: ""
|
|
APPSMITH_GOOGLE_MAPS_API_KEY: ""
|
|
APPSMITH_REDIS_URL: redis://redis-service:6379
|
|
APPSMITH_MONGODB_URI: $mongo_protocol$encoded_mongo_root_user:$encoded_mongo_root_password@$mongo_host/$mongo_db?retryWrites=true&authSource=admin
|
|
APPSMITH_DISABLE_TELEMETRY: "$disable_telemetry"
|
|
APPSMITH_RECAPTCHA_SITE_KEY= ""
|
|
APPSMITH_RECAPTCHA_SECRET_KEY= ""
|
|
APPSMITH_RECAPTCHA_ENABLED= "false"
|
|
EOF
|