forked from novaframework/rebar3_nova
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprod_sys.config.src
More file actions
37 lines (36 loc) · 1.15 KB
/
prod_sys.config.src
File metadata and controls
37 lines (36 loc) · 1.15 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
36
37
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
[
{kernel, [
{logger_level, info},
{logger,
[{handler, default, logger_std_h,
#{formatter => {nova_jsonlogger, #{new_line => true}}}}
]}
]},
{nova, [
{shutdown_delay, 5000},
{shutdown_drain_timeout, 15000},
{use_stacktrace, false},
{environment, prod},
{cowboy_configuration, #{
port => 8080
}},
{dev_mode, false},
{bootstrap_application, {{name}}},
{plugins, [
{pre_request, nova_request_plugin, #{decode_json_body => true}}
]}
]},
{{{name}}, [
{{{name}}_repo, #{
database => <<"{{name}}_prod">>,
hostname => <<"localhost">>,
port => 5432,
username => <<"postgres">>,
password => <<"postgres">>,
pool_size => 20
}}
]}
%% In production, set DATABASE_URL environment variable instead.
%% The repo init/1 callback will parse it automatically.
].