forked from alphagov/notifications-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.yml.j2
71 lines (56 loc) · 2.34 KB
/
manifest.yml.j2
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{%- set apps = {
'notify-admin': {
'routes': {
'preview': ['www.notify.works', 'notify-admin-preview.apps.internal'],
'staging': ['www.staging-notify.works', 'notify-admin-staging.apps.internal'],
'production': ['www.notifications.service.gov.uk', 'notify-admin-production.apps.internal'],
}
},
'notify-admin-prototype': {},
'notify-admin-prototype-2': {}
} -%}
{%- set app = apps[CF_APP] -%}
---
applications:
- name: {{ CF_APP }}
buildpack: python_buildpack
memory: 1G
routes:
- route: {{ CF_APP }}-{{ environment }}.cloudapps.digital
{%- for route in app.get('routes', {}).get(environment, []) %}
- route: {{ route }}
{%- endfor %}
health-check-type: http
health-check-http-endpoint: '/_status?simple=true'
health-check-invocation-timeout: 10
stack: cflinuxfs3
services:
- logit-ssl-syslog-drain
env:
NOTIFY_APP_NAME: admin
NOTIFY_LOG_PATH: /home/vcap/logs/app.log
FLASK_APP: application.py
NOTIFY_ENVIRONMENT: {{ environment }}
# Credentials variables
ADMIN_CLIENT_SECRET: '{{ ADMIN_CLIENT_SECRET }}'
ADMIN_BASE_URL: '{{ ADMIN_BASE_URL }}'
API_HOST_NAME: '{{ API_HOST_NAME_INTERNAL }}'
DANGEROUS_SALT: '{{ DANGEROUS_SALT }}'
SECRET_KEY: '{{ SECRET_KEY }}'
ROUTE_SECRET_KEY_1: '{{ ROUTE_SECRET_KEY_1 }}'
ROUTE_SECRET_KEY_2: '{{ ROUTE_SECRET_KEY_2 }}'
METRICS_BASIC_AUTH_TOKEN: {{ METRICS_BASIC_AUTH_TOKEN }}
REDIS_URL: '{{ REDIS_URL }}'
AWS_ACCESS_KEY_ID: '{{ AWS_ACCESS_KEY_ID }}'
AWS_SECRET_ACCESS_KEY: '{{ AWS_SECRET_ACCESS_KEY }}'
ANTIVIRUS_API_HOST: '{{ ANTIVIRUS_API_HOST }}'
ANTIVIRUS_API_KEY: '{{ ANTIVIRUS_API_KEY }}'
ZENDESK_API_KEY: '{{ ZENDESK_API_KEY }}'
TEMPLATE_PREVIEW_API_HOST: '{{ TEMPLATE_PREVIEW_API_HOST }}'
TEMPLATE_PREVIEW_API_KEY: '{{ TEMPLATE_PREVIEW_API_KEY }}'
NOTIFY_BILLING_DETAILS: '{{ NOTIFY_BILLING_DETAILS | tojson }}'
SENTRY_ENABLED: '{{ NOTIFICATIONS_ADMIN_SENTRY_ENABLED }}'
SENTRY_DSN: '{{ NOTIFICATIONS_ADMIN_SENTRY_DSN }}'
SENTRY_ERRORS_SAMPLE_RATE: '{{ NOTIFICATIONS_ADMIN_SENTRY_ERRORS_SAMPLE_RATE }}'
SENTRY_TRACES_SAMPLE_RATE: '{{ NOTIFICATIONS_ADMIN_SENTRY_TRACES_SAMPLE_RATE }}'
SENTRY_FORCE_TRACE_HEADER_VALUE: '{{ NOTIFICATIONS_ADMIN_SENTRY_FORCE_TRACE_HEADER_VALUE }}'