apps/mdn/mdn-aws/k8s/regions/oregon/prod.mm.sh
#!/usr/bin/env bash
echo '--> Setting environment to PROD(MM) in OREGON'

export KUBECONFIG=${HOME}/.kube/mdn-us-west-2.config

# Define defaults for environment variables that personalize the commands.
export TARGET_ENVIRONMENT=prod
export K8S_NAMESPACE=mdn-${TARGET_ENVIRONMENT}
export AWS_REGION=us-west-2
export K8S_CLUSTER_SHORT_NAME=oregon

# Define an alias for kubectl for convenience.
alias kc="kubectl -n ${K8S_NAMESPACE}"

export ELB_CONNECTION_DRAINING_ENABLED=True

export WEB_SERVICE_NAME=web
export WEB_SERVICE_TYPE=LoadBalancer
export WEB_SERVICE_PORT=443
export WEB_SERVICE_TARGET_PORT=8000
export WEB_SERVICE_PROTOCOL=TCP
export WEB_SERVICE_CERT_ARN=arn:aws:acm:us-west-2:178589013767:certificate/6cd2746f-26e7-491f-95ba-4972b1aa5879

export WEB_NAME=web
export WEB_REPLICAS=5
export WEB_MAX_REPLICAS=15
export WEB_GUNICORN_WORKERS=8
export WEB_GUNICORN_TIMEOUT=90
export WEB_GUNICORN_KEEPALIVE=75
export WEB_CPU_LIMIT=4
export WEB_CPU_REQUEST=500m
export WEB_MEMORY_LIMIT=6Gi
export WEB_MEMORY_REQUEST=4Gi
export WEB_ALLOWED_HOSTS="developer.mozilla.org,mdn.mozillademos.org,demos.mdn.mozit.cloud,demos-origin.mdn.mozit.cloud,developer-prod.mdn.mozit.cloud,prod.mdn.mozit.cloud,yari-demos.prod.mdn.mozit.cloud"

export CELERY_WORKERS_NAME=celery-worker
export CELERY_WORKERS_REPLICAS=1
export CELERY_WORKERS_MAX_REPLICAS=4
export CELERY_WORKERS_CPU_LIMIT=4
export CELERY_WORKERS_CPU_REQUEST=500m
export CELERY_WORKERS_MEMORY_LIMIT=4Gi
export CELERY_WORKERS_MEMORY_REQUEST=2Gi
export CELERY_WORKERS_CONCURRENCY=4
export CELERY_WORKERS_QUEUES=mdn_purgeable,mdn_search,mdn_emails,mdn_wiki,mdn_api,celery

export CELERY_BEAT_NAME=celery-beat
export CELERY_BEAT_REPLICAS=0
export CELERY_BEAT_CPU_LIMIT=1
export CELERY_BEAT_CPU_REQUEST=250m
export CELERY_BEAT_MEMORY_LIMIT=1Gi
export CELERY_BEAT_MEMORY_REQUEST=256Mi

export KUMA_IMAGE=mdnwebdocs/kuma
export KUMA_IMAGE_PULL_POLICY=IfNotPresent

export KUMA_ACCOUNT_DEFAULT_HTTP_PROTOCOL=https
export KUMA_ADMIN_NAMES="MDN devs"
export KUMA_ALLOW_ROBOTS=True
export KUMA_ATTACHMENT_HOST=mdn.mozillademos.org
export KUMA_ATTACHMENT_ORIGIN=yari-demos.prod.mdn.mozit.cloud
export KUMA_ATTACHMENTS_AWS_S3_CUSTOM_DOMAIN="media.prod.mdn.mozit.cloud"
export KUMA_CELERY_TASK_ALWAYS_EAGER=False
export KUMA_CELERY_WORKER_MAX_TASKS_PER_CHILD=0
export KUMA_CSRF_COOKIE_SECURE=True
export KUMA_DEBUG=False
export KUMA_DEBUG_TOOLBAR=False
export KUMA_DOMAIN=developer.mozilla.org
export KUMA_EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
export KUMA_ENABLE_CANDIDATE_LANGUAGES=False
export KUMA_ES_INDEX_PREFIX=mdnprod
export KUMA_ES_LIVE_INDEX=True
export KUMA_GOOGLE_ANALYTICS_ACCOUNT=UA-36116321-5
export KUMA_LEGACY_ROOT=/mdn/www
export KUMA_MAINTENANCE_MODE=True
export KUMA_MEDIA_ROOT=/mdn/www
export KUMA_MEDIA_URL=https://developer.mozilla.org/media/
export KUMA_PROTOCOL="https://"
export KUMA_SECURE_HSTS_SECONDS=63072000
export KUMA_SERVE_LEGACY=True
export KUMA_SESSION_COOKIE_SECURE=True
export KUMA_WEB_CONCURRENCY=4
export KUMA_FXA_TOKEN_ISSUER=https://accounts.firefox.com
export KUMA_FXA_VERIFY_URL=https://oauth.accounts.firefox.com/v1/verify
export KUMA_FXA_SET_ISSUER=https://accounts.firefox.com
export KUMA_OIDC_RP_CLIENT_ID=720bc80adfa6988d
export KUMA_OIDC_CONFIGURATION_URL=https://accounts.firefox.com/.well-known/openid-configuration
export KUMA_OIDC_OP_AUTHORIZATION_ENDPOINT=https://accounts.firefox.com/authorization
export KUMA_OIDC_OP_TOKEN_ENDPOINT=https://oauth.accounts.firefox.com/v1/token
export KUMA_OIDC_OP_USER_ENDPOINT=https://profile.accounts.firefox.com/v1/profile
export KUMA_OIDC_OP_JWKS_ENDPOINT=https://oauth.accounts.firefox.com/v1/jwks

export INTERACTIVE_EXAMPLES_BASE_URL=https://interactive-examples.mdn.mozilla.net
