summaryrefslogtreecommitdiff
path: root/examples/docker-minimal-separate/frontend/catlfish.config
blob: 9f5e35dbb8f46a5ff6664a3515861c712a905844 (plain)
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
%% catlfish configuration file (-*- erlang -*-)
%% Start like this:
%% $ erl -boot start_sasl -config catlfish -run inets
[{sasl,
  [{sasl_error_logger, false},
   {errlog_type, error},
   {error_logger_mf_dir, "log"},
   {error_logger_mf_maxbytes, 10485760},	% 10 MB
   {error_logger_mf_maxfiles, 10}]},
 {catlfish,
  [{known_roots_path, "known_roots"},
   {rejected_certs_path, "rejected"},
   {https_servers,
    [{external_https_api, "0.0.0.0", 8080, v1},
     {frontend_https_api, "0.0.0.0", 8082, frontend}
    ]},
   {https_certfile, "https/certs/ct.cert.pem"},
   {https_keyfile, "https/keys/ct.key.pem"},
   {https_cacertfile, "https/certs/cas.pem"}
  ]},
 {lager,
  [{handlers,
    [{lager_console_backend, info},
     {lager_file_backend, [{file, "log/error.log"}, {level, error}]},
     {lager_file_backend, [{file, "log/debug.log"}, {level, debug}]},
     {lager_file_backend, [{file, "log/console.log"}, {level, info}]}
    ]}
  ]},
 {plop,
  [{entry_root_path, "db/certentries/"},
   {index_path, "db/index"},
   {entryhash_root_path, "db/entryhash/"},
   {treesize_path, "db/treesize"},
   {indexforhash_root_path, "db/certindex/"},
   {storage_nodes,
    ["https://MY-PUBLIC-ADDRESS:10081/ct/storage/"]},
   {storage_nodes_quorum, 1}
  ]}].