-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.prod.yaml
45 lines (43 loc) · 1.59 KB
/
app.prod.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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"