Files
notifications-api/manifest.yml

60 lines
2.1 KiB
YAML
Raw Normal View History

2022-06-17 16:46:20 -04:00
---
applications:
- name: notify-api-((env))
buildpack: python_buildpack
2023-04-27 14:49:49 -04:00
stack: cflinuxfs4
2022-06-17 16:46:20 -04:00
instances: 1
disk_quota: 2G
routes:
- route: ((public_api_route))
- route: notify-api-((env)).apps.internal
2022-06-17 16:46:20 -04:00
services:
- notify-api-rds-((env))
2024-06-26 19:06:30 -07:00
- notify-api-redis-v70-((env))
- notify-api-csv-upload-bucket-((env))
- name: notify-api-ses-((env))
parameters:
2023-01-31 17:27:17 -05:00
notification_webhook: "https://((public_api_route))/notifications/email/ses"
2023-02-28 14:49:53 -05:00
- notify-api-sns-((env))
2022-06-17 16:46:20 -04:00
processes:
- type: web
instances: ((web_instances))
memory: ((web_memory))
command: ./scripts/migrate_and_run_web.sh
- type: worker
instances: ((worker_instances))
memory: ((worker_memory))
command: newrelic-admin run-program celery -A run_celery.notify_celery worker --loglevel=INFO --pool=gevent --concurrency=20 --prefetch-multiplier=2
2022-11-14 16:04:49 -05:00
- type: scheduler
instances: 1
memory: ((scheduler_memory))
2022-11-29 14:19:32 -05:00
command: celery -A run_celery.notify_celery beat --loglevel=INFO
2022-06-17 16:46:20 -04:00
env:
NOTIFY_APP_NAME: api
2022-06-17 16:46:20 -04:00
FLASK_APP: application.py
2023-02-09 13:44:41 -05:00
FLASK_DEBUG: "false"
NEW_RELIC_CONFIG_FILE: newrelic.ini
NEW_RELIC_ENVIRONMENT: ((env))
2023-01-18 10:49:39 -05:00
NEW_RELIC_LICENSE_KEY: ((NEW_RELIC_LICENSE_KEY))
2022-06-17 16:46:20 -04:00
REDIS_ENABLED: ((redis_enabled))
2022-10-31 15:37:12 -04:00
NOTIFY_ENVIRONMENT: ((env))
API_HOST_NAME: https://((public_api_route))
ADMIN_BASE_URL: ((admin_base_url))
NOTIFY_E2E_TEST_EMAIL: ((NOTIFY_E2E_TEST_EMAIL))
NOTIFY_E2E_TEST_PASSWORD: ((NOTIFY_E2E_TEST_PASSWORD))
2024-03-19 13:59:55 -07:00
LOGIN_DOT_GOV_REGISTRATION_URL: ((LOGIN_DOT_GOV_REGISTRATION_URL))
2022-06-25 18:36:39 -07:00
# Credentials variables
INTERNAL_CLIENT_API_KEYS: '{"notify-admin":["((ADMIN_CLIENT_SECRET))"]}'
DANGEROUS_SALT: ((DANGEROUS_SALT))
SECRET_KEY: ((SECRET_KEY))
2023-02-28 14:49:53 -05:00
AWS_US_TOLL_FREE_NUMBER: ((default_toll_free_number))
SSL_CERT_FILE: "/etc/ssl/certs/ca-certificates.crt"
REQUESTS_CA_BUNDLE: "/etc/ssl/certs/ca-certificates.crt"
NEW_RELIC_CA_BUNDLE_PATH: "/etc/ssl/certs/ca-certificates.crt"