summaryrefslogtreecommitdiff
path: root/test/config/frontend-1.config
blob: 585efd89a10bfd45dd88595ebff0553a95d53cea (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
%% catlfish configuration file (-*- erlang -*-)

[{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"},
   {https_servers,
    [{external_https_api, "127.0.0.1", 8080, v1},
     {frontend_https_api, "127.0.0.1", 8082, frontend}
    ]},
   {https_certfile, "catlfish/webroot/certs/webcert.pem"},
   {https_keyfile, "catlfish/webroot/keys/webkey.pem"},
   {https_cacertfile, "catlfish/webroot/certs/webcert.pem"}
  ]},
 {lager,
  [{handlers,
    [{lager_console_backend, info},
     {lager_file_backend, [{file, "frontend-1-error.log"}, {level, error}]},
     {lager_file_backend, [{file, "frontend-1-debug.log"}, {level, debug}]},
     {lager_file_backend, [{file, "frontend-1-console.log"}, {level, info}]}
    ]}
  ]},
 {plop,
  [{entry_root_path, "tests/machine/machine-1/db/certentries/"},
   {index_path, "tests/machine/machine-1/db/index"},
   {entryhash_root_path, "tests/machine/machine-1/db/entryhash/"},
   {treesize_path, "tests/machine/machine-1/db/treesize"},
   {indexforhash_root_path, "tests/machine/machine-1/db/certindex/"},
   {storage_nodes, ["https://127.0.0.1:8081/ct/storage/"]},
   {storage_nodes_quorum, 1},
   {publickey_path, "publickeys"},
   {services, [ht]},
   {log_public_key, "test/eckey-public.pem"},
   {own_key, {"frontend-1", "privatekeys/frontend-1-private.pem"}},
   {signing_node, "https://127.0.0.1:8088/ct/signing/"},
   {allowed_clients, [{"/ct/frontend/sendentry", ["merge-1"]},
                      {"/ct/frontend/sendlog", ["merge-1"]},
                      {"/ct/frontend/sendsth", ["merge-1"]},
                      {"/ct/frontend/currentposition", ["merge-1"]},
                      {"/ct/frontend/missingentries", ["merge-1"]},
                      {"/ct/v1/add-chain", noauth},
                      {"/ct/v1/add-pre-chain", noauth},
                      {"/ct/v1/get-sth", noauth},
                      {"/ct/v1/get-sth-consistency", noauth},
                      {"/ct/v1/get-proof-by-hash", noauth},
                      {"/ct/v1/get-entries", noauth},
                      {"/ct/v1/get-entry-and-proof", noauth},
                      {"/ct/v1/get-roots", noauth}
                     ]},
   {allowed_servers, [{"/ct/storage/sendentry", ["storage-1"]},
                      {"/ct/storage/entrycommitted", ["storage-1"]},
                      {"/ct/signing/sct", ["signing-1"]},
                      {"/ct/signing/sth", ["signing-1"]}
                     ]}
  ]}].