This repository has been archived by the owner on Mar 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
86 lines (72 loc) · 2.15 KB
/
config.yaml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
common: &common
SMTP_USE_SSL: "true"
SMTP_HOST: ""
SMTP_PORT: "465"
SMTP_USERNAME: ""
SMTP_PASSWORD: ""
SUPPORT_EMAIL: ""
NOREPLY_EMAIL: ""
BAUBLE_APP_URL: "http://127.0.0.1:9000"
DEBUG: "false"
API_BIND: 'localhost:8088'
BAUBLE_DB_URL: 'postgresql://localhost/bauble'
DB_MAX_CONNECTIONS: "400"
DB_DEFAULT_POOL_SIZE: "100"
# The default pool size needs to be the maximum number of connections the
# database can maintain divided by the number of server instances/dynos
# running. So for 400 max connections on 10 dynos the pool size should be
# 40.
GUNICORN_WORKERS: "4"
GUNICORN_WORKER_CLASS: "sync"
GUNICORN_THREAD: "4"
GUNICORN_TIMEOUT: "45"
# The number of tasks workers depends on memory size of the server and the
# number of http worker processes. A Heroku 2x dynos has a max number of
# processes and threads set to 512 so if we have 100 task workers and 4 http
# workers that is a total of 400 worker threads per dyno.
NUM_TASK_WORKERS: "100"
PY_THREAD_STACK_SIZE: "512000"
#
# The test environemnt is used for the test runner and Travis build.
#
test:
<<: *common
BAUBLE_ENV: 'test'
BAUBLE_DB_URL: "postgres://localhost/bauble"
SEND_EMAILS: "false"
TEST: "true"
#
# The local environment is for running the server on your local development
# environment and connecting to a local database.
#
local:
<<: *common
BAUBLE_ENV: 'local'
DISABLE_ANALYTICS: "true"
GUNICORN_RELOAD: "true"
BAUBLE_DB_URL: "postgres://test:test@localhost/bauble"
SEND_EMAILS: "false"
#
# The staging environment is for pushing to the staging servers for the clients
# to test against before pushing to production.
#
staging: &api_staging
<<: *common
BAUBLE_ENV: staging
POSTGRESQL_DB_URL: "postgres://test:test@localhost/bauble"
SEND_EMAILS: "true"
#
# The dev environment is for development only and clients should never hit it.
#
dev:
<<: *api_staging
BAUBLE_ENV: dev
HEROKU_ENV: dev
BAUBLE_DB_URL: "postgres://test:test@localhost/bauble"
#
# The production environment is for production servers.
#
production:
<<: *common
BAUBLE_ENV: production
BAUBLE_DB_URL: "postgres://test:test@localhost/bauble"