summaryrefslogtreecommitdiff
path: root/p11p-daemon/config/sys.config
blob: 82b6d36bed0b998159c0954255d1d29ad3e6d783 (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
%% -*- erlang -*-
[
 {p11p,
  [
   {loglevel, 3},
   {socket_dir, "/run/p11p"},                   % Default: /run/user/$EUID/p11p.
   %%{socket_path_has_pid, false},		% Default: true.
   %%{proxyapp_bin_path, "/path/to/p11-kit-remote"}, % Default: /usr/lib/x86_64-linux-gnu/p11-kit/p11-kit-remote
   {testing_drop_prob, 0},			% Default: 0.
   {vtokens,
    [{"vtoken0",
      [
       {timeout, 2000},				% Deault: 25000 (25s)
       %%{balance, [10, 2]},			% Default: all zeroes
       {modules,
	[
	 {"softhsm2", "/usr/lib/softhsm/libsofthsm2.so"},
	 {"bogusmod_0", "/usr/lib/softhsm/libsofthsm2.so"}
	]}
      ]},
     {"vtoken1",
      [
       %% Try failover twice, even if we have only one token. In
       %% effect, retry the same token once after a failure.
       {failover, 2},		     % Default: #of modules minus one.
       {timeout, 1000},
       {modules,
	[
	 {"softhsm2", "/usr/lib/softhsm/libsofthsm2.so", [{"SOFTHSM2_CONF", "/home/linus/usr/src/p11p/tests/softhsm/softhsm2.conf"}]}
	]}
      ]}
    ]}
  ]},
 {lager,
  [{handlers,
    [
     {lager_console_backend, [{level, debug}]}
    ]}]}
].