Skip to content

Commit c378121

Browse files
committed
config placeholder file for production release
1 parent 1b36a37 commit c378121

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ test:
99
./rebar3 ct
1010

1111
release:
12+
cd priv/ui && lein do clean, cljsbuild once min && cd ../.. && \
13+
./rebar3 as prod release
14+
15+
release_tar:
1216
cd priv/ui && lein do clean, cljsbuild once min && cd ../.. && \
1317
./rebar3 as prod release tar
1418

conf/prod.config

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[
2+
{holiday_ping, [
3+
{port, 8001},
4+
{token_secret, <<"FIXME!!!!">>},
5+
{token_expiration, 86400},
6+
{verification_code_expiration, 300},
7+
{password_code_expiration, 300},
8+
{checker_interval, 900000},
9+
{email_enabled, true},
10+
{monthly_limits, #{slack => 100,
11+
email => 100,
12+
webhook => 100}},
13+
{pg_options, [{size, 10},
14+
{database, "holiday_ping"},
15+
{username, "FIXME!!!"},
16+
{password, "FIXME!!!"}]}
17+
]},
18+
{throttle, [{rates, [{global_api_rate, 5, per_second},
19+
%% these rates have to also consider failed requests (e.g. 4xx responses)
20+
{register_rate, 5, per_hour},
21+
{password_reset_rate, 10, per_hour},
22+
{resend_confirmation_rate, 10, per_hour},
23+
{test_channel_rate, 20, per_hour}]}]},
24+
{lager, [
25+
{handlers, [
26+
{lager_console_backend, [{level, debug}]},
27+
{lager_file_backend, [{file, "log/error.log"}, {level, error}]},
28+
{lager_file_backend, [{file, "log/console.log"}, {level, info}]}]}
29+
]}
30+
31+
].

rebar.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@
2626

2727
{profiles, [{prod, [{relx, [{dev_mode, false},
2828
{include_erts, true},
29-
{sys_config, "./conf/dev.config"},
29+
{sys_config, "./conf/prod.config"},
3030
{extended_start_script, true}]}]}]}.

0 commit comments

Comments
 (0)