-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathprod.config
36 lines (35 loc) · 1.62 KB
/
prod.config
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
[
{holiday_ping, [
{protocol, https},
{port, 443},
{certfile, "${SSL_CERTFILE}"},
{keyfile, "${SSL_KEYFILE}"},
{token_secret, "${TOKEN_SECRET}"},
{token_expiration, 86400},
{verification_code_expiration, 300},
{password_code_expiration, 300},
{checker_interval, 900000},
{email_enabled, true},
{email_provider, mailgun},
{monthly_limits, #{slack => 100,
email => 100,
webhook => 100}},
{pg_options, [{size, 10},
{host, "${POSTGRES_HOST}"},
{database, "${POSTGRES_DB}"},
{username, "${POSTGRES_USER}"},
{password, "${POSTGRES_PASSWORD}"}]}
]},
{throttle, [{rates, [{global_api_rate, 5, per_second},
%% these rates have to also consider failed requests (e.g. 4xx responses)
{register_rate, 5, per_hour},
{password_reset_rate, 10, per_hour},
{resend_confirmation_rate, 10, per_hour},
{test_channel_rate, 20, per_hour}]}]},
{lager, [
{handlers, [
{lager_console_backend, [{level, info}]},
{lager_file_backend, [{file, "log/error.log"}, {level, error}]},
{lager_file_backend, [{file, "log/console.log"}, {level, info}]}]}
]}
].