CIMAC-CIDC/cidc-api-gae

View on GitHub
app.prod.yaml

Summary

Maintainability
Test Coverage
runtime: python37
env: standard
entrypoint: gunicorn cidc_api.app:app
instance_class: F2
# These scaling config values are intended to prevent GAE from
# spinning up addditional instances too eagerly.
automatic_scaling:
  # Always have at least one instance running and ready
  # to handle requests.
  min_instances: 1
  # Our gunicorn server should comfortably handle
  # this many concurrent requests.
  max_concurrent_requests: 50
  # Most of our endpoint operations are I/O-bound,
  # so we are unlikely to exceed this.
  target_cpu_utilization: .95

handlers:
  # Force HTTPS on all requests
  - url: /.*
    script: auto
    secure: always
    redirect_http_response_code: 301

env_variables:
  ENV: "prod"
  ALLOWED_CLIENT_URL: "https://portal.cimac-network.org"
  AUTH0_DOMAIN: "cidc.auth0.com"
  AUTH0_CLIENT_ID: "nI74q5VDJ2w2OaKgoK3lAkuxWvCkKP30"
  CLOUD_SQL_INSTANCE_NAME: "cidc-dfci:us-east1:cidc-postgresql-prod"
  CLOUD_SQL_DB_USER: "cidcuser"
  CLOUD_SQL_DB_NAME: "cidc-prod"
  GOOGLE_ACL_DATA_BUCKET: "cidc-data-prod-acl"
  GOOGLE_DATA_BUCKET: "cidc-data-prod"
  GOOGLE_SECRETS_BUCKET: "cidc-secrets-prod"
  GOOGLE_INTAKE_BUCKET: "cidc-intake-prod"
  GOOGLE_UPLOAD_BUCKET: "cidc-uploads-prod"
  GOOGLE_EPHEMERAL_BUCKET: "cidc-ephemeral-prod"
  GOOGLE_UPLOAD_TOPIC: "uploads"
  GOOGLE_EMAILS_TOPIC: "emails"
  GOOGLE_PATIENT_SAMPLE_TOPIC: "patient_sample_update"
  GOOGLE_ARTIFACT_UPLOAD_TOPIC: "artifact_upload"
  GOOGLE_GRANT_DOWNLOAD_PERMISSIONS_TOPIC: "grant_download_perms"
  GOOGLE_UPLOAD_ROLE: "projects/cidc-dfci/roles/objectUploader"
  GOOGLE_LISTER_ROLE: "projects/cidc-dfci/roles/CustomRoleLister"