-
Notifications
You must be signed in to change notification settings - Fork 5
/
env.yml
63 lines (56 loc) · 1.81 KB
/
env.yml
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
# See: https://github.com/typeorm/typeorm/blob/master/docs/using-ormconfig.md#using-ormconfigjs
# Setting some ENV vars for typeorm and reading them in ormconfig.js
local_app: &local_app
NODE_ENV: development
PGUSER: postgres
WARTHOG_AUTO_OPEN_PLAYGROUND: false
WARTHOG_AUTO_GENERATE_FILES: false
WARTHOG_APP_HOST: localhost
WARTHOG_APP_PORT: 4100
build_env: &build_env
WARTHOG_BUILD_ENV: true
WARTHOG_DB_ENTITIES: dist/src/**/*.model.js
WARTHOG_DB_SUBSCRIBERS: dist/src/**/*.model.js
WARTHOG_RESOLVERS_PATH: dist/src/**/*.resolver.js
WARTHOG_DB_MIGRATIONS: dist/db/migrations/**/*.js
local_db: &local_db
WARTHOG_DB_DATABASE: warthog-starter-development
WARTHOG_DB_HOST: localhost
WARTHOG_DB_LOGGING: all
WARTHOG_DB_PASSWORD:
value: ' ' # This should be blank, but there is an issue in dotenvi: https://github.com/b3ross/dotenvi/issues/61
optional: true
WARTHOG_DB_PORT: 5432
WARTHOG_DB_SYNCHRONIZE: true
WARTHOG_DB_USERNAME: postgres
# PGSSLMODE: no-verify
prod_db: &prod_db
WARTHOG_DB_DATABASE: ${env:WARTHOG_STARTER_DB_DATABASE}
WARTHOG_DB_HOST: ${env:WARTHOG_STARTER_DB_HOST}
WARTHOG_DB_LOGGING: none
WARTHOG_DB_PASSWORD: ${env:WARTHOG_STARTER_DB_PASSWORD}
WARTHOG_DB_PORT: ${env:WARTHOG_STARTER_DB_PORT}
WARTHOG_DB_SYNCHRONIZE: false
WARTHOG_DB_USERNAME: ${env:WARTHOG_STARTER_DB_USERNAME}
PGSSLMODE: require
NODE_TLS_REJECT_UNAUTHORIZED: 0
test:
WARTHOG_DB_DATABASE: warthog-starter-test
<<: *local_app
<<: *local_db
local:
<<: *local_app
<<: *local_db
local:production:
WARTHOG_APP_PROTOCOL: http
<<: *local_app
<<: *build_env
<<: *prod_db
production:
NODE_ENV: production
WARTHOG_APP_HOST: localhost
# WARTHOG_APP_PORT: we don't set this here, add at runtime
WARTHOG_INTROSPECTION: true
WARTHOG_PLAYGROUND: true
<<: *prod_db
<<: *build_env