mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
Add demo application environment
This commit is contained in:
@@ -148,6 +148,10 @@ class Staging(Production):
|
|||||||
HEADER_COLOUR = '#6F72AF' # $mauve
|
HEADER_COLOUR = '#6F72AF' # $mauve
|
||||||
|
|
||||||
|
|
||||||
|
class Demo(Staging):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class Scanning(Production):
|
class Scanning(Production):
|
||||||
BASIC_AUTH_FORCE = False
|
BASIC_AUTH_FORCE = False
|
||||||
HTTP_PROTOCOL = 'http'
|
HTTP_PROTOCOL = 'http'
|
||||||
@@ -162,5 +166,6 @@ configs = {
|
|||||||
'test': Test,
|
'test': Test,
|
||||||
'scanning': Scanning,
|
'scanning': Scanning,
|
||||||
'staging': Staging,
|
'staging': Staging,
|
||||||
|
'demo': Demo,
|
||||||
'production': Production
|
'production': Production
|
||||||
}
|
}
|
||||||
|
|||||||
+14
-15
@@ -1,45 +1,44 @@
|
|||||||
---
|
---
|
||||||
applications:
|
applications:
|
||||||
- name: notifications-admin-((env))
|
- name: notify-admin-((env))
|
||||||
buildpack: python_buildpack
|
buildpack: python_buildpack
|
||||||
memory: 1G
|
instances: ((instances))
|
||||||
|
memory: ((memory))
|
||||||
health-check-type: http
|
health-check-type: http
|
||||||
health-check-http-endpoint: '/_status?simple=true'
|
health-check-http-endpoint: '/_status?simple=true'
|
||||||
health-check-invocation-timeout: 10
|
health-check-invocation-timeout: 10
|
||||||
routes:
|
routes:
|
||||||
- route: notifications-admin.app.cloud.gov
|
- route: ((public_admin_route))
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- notifications-admin-redis-((env))
|
- notify-admin-redis-((env))
|
||||||
- notifications-api-csv-upload-bucket-((env))
|
- notify-api-csv-upload-bucket-((env))
|
||||||
- notifications-api-contact-list-bucket-((env))
|
- notify-api-contact-list-bucket-((env))
|
||||||
- notifications-admin-logo-upload-bucket-((env))
|
- notify-admin-logo-upload-bucket-((env))
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
NOTIFY_ENVIRONMENT: ((env))
|
||||||
NOTIFY_APP_NAME: admin
|
NOTIFY_APP_NAME: admin
|
||||||
NOTIFY_LOG_PATH: /home/vcap/logs/app.log
|
NOTIFY_LOG_PATH: /home/vcap/logs/app.log
|
||||||
NOTIFY_LOG_LEVEL: INFO
|
NOTIFY_LOG_LEVEL: INFO
|
||||||
FLASK_APP: application.py
|
FLASK_APP: application.py
|
||||||
FLASK_ENV: production
|
FLASK_ENV: production
|
||||||
DEPLOY_ENV: ((env))
|
|
||||||
REDIS_ENABLED: ((REDIS_ENABLED))
|
REDIS_ENABLED: ((REDIS_ENABLED))
|
||||||
|
ADMIN_BASE_URL: https://((public_admin_route))
|
||||||
NOTIFY_ENVIRONMENT: ((env))
|
API_HOST_NAME: https://notify-api-((env)).apps.internal:61443
|
||||||
|
|
||||||
# Credentials variables
|
# Credentials variables
|
||||||
ADMIN_CLIENT_SECRET: ((ADMIN_CLIENT_SECRET))
|
ADMIN_CLIENT_SECRET: ((ADMIN_CLIENT_SECRET))
|
||||||
ADMIN_CLIENT_USERNAME: ((ADMIN_CLIENT_USERNAME))
|
ADMIN_CLIENT_USERNAME: ((ADMIN_CLIENT_USERNAME))
|
||||||
ADMIN_BASE_URL: https://notifications-admin.app.cloud.gov
|
|
||||||
API_HOST_NAME: https://notifications-api-((env)).apps.internal:61443
|
|
||||||
DANGEROUS_SALT: ((DANGEROUS_SALT))
|
DANGEROUS_SALT: ((DANGEROUS_SALT))
|
||||||
SECRET_KEY: ((SECRET_KEY))
|
SECRET_KEY: ((SECRET_KEY))
|
||||||
|
BASIC_AUTH_USERNAME: ((BASIC_AUTH_USERNAME))
|
||||||
|
BASIC_AUTH_PASSWORD: ((BASIC_AUTH_PASSWORD))
|
||||||
|
|
||||||
AWS_REGION: us-west-2
|
AWS_REGION: us-west-2
|
||||||
AWS_ACCESS_KEY_ID: ((AWS_ACCESS_KEY_ID))
|
AWS_ACCESS_KEY_ID: ((AWS_ACCESS_KEY_ID))
|
||||||
AWS_SECRET_ACCESS_KEY: ((AWS_SECRET_ACCESS_KEY))
|
AWS_SECRET_ACCESS_KEY: ((AWS_SECRET_ACCESS_KEY))
|
||||||
BASIC_AUTH_USERNAME: ((BASIC_AUTH_USERNAME))
|
|
||||||
BASIC_AUTH_PASSWORD: ((BASIC_AUTH_PASSWORD))
|
|
||||||
|
|
||||||
NOTIFY_BILLING_DETAILS: []
|
NOTIFY_BILLING_DETAILS: '[]'
|
||||||
|
|
||||||
REQUESTS_CA_BUNDLE: "/etc/ssl/certs/ca-certificates.crt"
|
REQUESTS_CA_BUNDLE: "/etc/ssl/certs/ca-certificates.crt"
|
||||||
|
|||||||
Reference in New Issue
Block a user