2022-06-17 16:46:20 -04:00
|
|
|
---
|
|
|
|
|
applications:
|
2022-09-14 11:15:49 -04:00
|
|
|
- name: notifications-api-((env))
|
2022-08-29 15:35:16 -04:00
|
|
|
buildpack: https://github.com/cloudfoundry/python-buildpack.git#v1.7.58
|
2022-06-17 16:46:20 -04:00
|
|
|
instances: 1
|
|
|
|
|
memory: 1G
|
|
|
|
|
disk_quota: 1G
|
|
|
|
|
health-check-type: process
|
|
|
|
|
health-check-invocation-timeout: 1
|
2022-06-22 14:53:15 -07:00
|
|
|
routes:
|
|
|
|
|
- route: notifications-api.app.cloud.gov
|
2022-09-21 11:24:25 -04:00
|
|
|
- route: notifications-api-((env)).apps.internal
|
2022-06-17 16:46:20 -04:00
|
|
|
|
|
|
|
|
services:
|
2022-09-14 11:15:49 -04:00
|
|
|
- notifications-api-rds-((env))
|
|
|
|
|
- notifications-api-redis-((env))
|
2022-09-16 16:26:02 -04:00
|
|
|
- notifications-api-csv-upload-bucket-((env))
|
|
|
|
|
- notifications-api-contact-list-bucket-((env))
|
2022-06-17 16:46:20 -04:00
|
|
|
|
2022-10-18 11:22:58 -04:00
|
|
|
processes:
|
|
|
|
|
- type: web
|
|
|
|
|
instances: ((web_instances))
|
|
|
|
|
memory: ((web_memory))
|
2022-10-18 12:27:55 -04:00
|
|
|
command: ./scripts/migrate_and_run_web.sh
|
2022-10-18 11:22:58 -04:00
|
|
|
- type: worker
|
|
|
|
|
instances: ((worker_instances))
|
|
|
|
|
memory: ((worker_memory))
|
|
|
|
|
command: ./scripts/run_app_paas.sh celery -A run_celery.notify_celery worker --loglevel=INFO --concurrency=4
|
|
|
|
|
|
2022-06-17 16:46:20 -04:00
|
|
|
env:
|
2022-06-23 13:45:58 -07:00
|
|
|
NOTIFY_APP_NAME: api
|
2022-06-17 16:46:20 -04:00
|
|
|
NOTIFY_LOG_PATH: /home/vcap/logs/app.log
|
|
|
|
|
FLASK_APP: application.py
|
2022-06-22 14:53:15 -07:00
|
|
|
FLASK_ENV: production
|
2022-09-16 16:26:02 -04:00
|
|
|
DEPLOY_ENV: ((env))
|
2022-06-17 16:46:20 -04:00
|
|
|
|
2022-06-23 13:45:58 -07:00
|
|
|
NOTIFY_ENVIRONMENT: live
|
2022-06-25 18:36:39 -07:00
|
|
|
API_HOST_NAME: https://notifications-api.app.cloud.gov
|
|
|
|
|
ADMIN_BASE_URL: https://notifications-admin.app.cloud.gov
|
2022-06-23 13:45:58 -07:00
|
|
|
STATSD_HOST: localhost
|
2022-06-25 18:36:39 -07:00
|
|
|
|
2022-06-23 13:45:58 -07:00
|
|
|
# Credentials variables
|
2022-09-21 10:25:56 -04:00
|
|
|
INTERNAL_CLIENT_API_KEYS: '{"notify-admin":["((ADMIN_CLIENT_SECRET))"]}'
|
2022-09-02 11:49:51 -04:00
|
|
|
ADMIN_CLIENT_SECRET: ((ADMIN_CLIENT_SECRET))
|
2022-06-22 14:53:15 -07:00
|
|
|
DANGEROUS_SALT: ((DANGEROUS_SALT))
|
|
|
|
|
SECRET_KEY: ((SECRET_KEY))
|
2022-09-21 10:25:56 -04:00
|
|
|
AWS_ACCESS_KEY_ID: ((AWS_ACCESS_KEY_ID))
|
|
|
|
|
AWS_SECRET_ACCESS_KEY: ((AWS_SECRET_ACCESS_KEY))
|
2022-06-23 13:45:58 -07:00
|
|
|
AWS_REGION: us-west-2
|
|
|
|
|
AWS_PINPOINT_REGION: us-west-2
|
|
|
|
|
AWS_US_TOLL_FREE_NUMBER: +18446120782
|
2022-06-17 16:46:20 -04:00
|
|
|
|
2022-06-22 14:53:15 -07:00
|
|
|
DVLA_EMAIL_ADDRESSES: []
|