diff --git a/deploy-config/production.yml b/deploy-config/production.yml index c16fff8a0..20b350795 100644 --- a/deploy-config/production.yml +++ b/deploy-config/production.yml @@ -3,3 +3,5 @@ web_instances: 2 web_memory: 1G worker_instances: 1 worker_memory: 512M +public_api_route: notifications-api.app.cloud.gov +admin_base_url: https://notifications-admin.app.cloud.gov diff --git a/deploy-config/staging.yml b/deploy-config/staging.yml index 43478a524..d62a18434 100644 --- a/deploy-config/staging.yml +++ b/deploy-config/staging.yml @@ -3,3 +3,5 @@ web_instances: 1 web_memory: 1G worker_instances: 1 worker_memory: 512M +public_api_route: notifications-api-staging.app.cloud.gov +admin_base_url: https://notifications-admin-staging.app.cloud.gov diff --git a/manifest.yml b/manifest.yml index 77ee86a1c..34ba768ff 100644 --- a/manifest.yml +++ b/manifest.yml @@ -1,14 +1,11 @@ --- applications: - name: notifications-api-((env)) - buildpack: https://github.com/cloudfoundry/python-buildpack.git#v1.7.58 + buildpack: python_buildpack instances: 1 - memory: 1G disk_quota: 1G - health-check-type: process - health-check-invocation-timeout: 1 routes: - - route: notifications-api.app.cloud.gov + - route: ((public_api_route)) - route: notifications-api-((env)).apps.internal services: @@ -34,8 +31,8 @@ applications: FLASK_ENV: production NOTIFY_ENVIRONMENT: ((env)) - API_HOST_NAME: https://notifications-api.app.cloud.gov - ADMIN_BASE_URL: https://notifications-admin.app.cloud.gov + API_HOST_NAME: https://((public_api_route)) + ADMIN_BASE_URL: ((admin_base_url)) # Credentials variables INTERNAL_CLIENT_API_KEYS: '{"notify-admin":["((ADMIN_CLIENT_SECRET))"]}'