-
Notifications
You must be signed in to change notification settings - Fork 375
Expand file tree
/
Copy pathapp.yml
More file actions
35 lines (34 loc) · 1.41 KB
/
app.yml
File metadata and controls
35 lines (34 loc) · 1.41 KB
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
# Template setup of the GVC, roughly corresponding to a Heroku app
kind: gvc
name: {{APP_NAME}}
spec:
# For using templates for test apps, put ENV values here, stored in git repo.
# Production apps will have values configured manually after app creation.
env:
- name: DATABASE_URL
# Password does not matter because host postgres.{{APP_NAME}}.cpln.local can only be accessed
# locally within CPLN GVC, and postgres running on a CPLN workload is something only for a
# test app that lacks persistence.
value: 'postgres://the_user:the_password@postgres.{{APP_NAME}}.cpln.local:5432/{{APP_NAME}}'
- name: RAILS_ENV
value: production
- name: NODE_ENV
value: production
- name: RAILS_SERVE_STATIC_FILES
value: 'true'
- name: REDIS_URL
# No password for GVC local Redis. See comment above for postgres.
value: 'redis://redis.{{APP_NAME}}.cpln.local:6379'
- name: SECRET_KEY_BASE
# For test apps, a placeholder value is fine. For production apps, this should be
# set to a secure random value using: openssl rand -hex 64
# Production apps should configure this manually after app creation via a secret.
value: 'placeholder_secret_key_base_for_test_apps_only'
# Part of standard configuration
staticPlacement:
locationLinks:
- {{APP_LOCATION_LINK}}
---
# Identity is needed to access secrets
kind: identity
name: {{APP_IDENTITY}}