-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrepo-ng.conf.sample
97 lines (92 loc) · 2.75 KB
/
repo-ng.conf.sample
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
repo
{
; Section defining list of Data prefixes to register
; Only 'prefix' option is allowed here, which can be repeated multiple times
data
{
prefix "ndn:/example/data/1"
prefix "ndn:/example/data/2"
}
; Section defining list of command prefixes (to insert or delete Data) to register.
; Only 'prefix' option is allowed here, which can be repeated multiple times
command
{
prefix "ndn:/example/repo/1"
prefix "ndn:/example/repo/2"
}
; Section to specify where data should be stored
; Right now only a single 'sqlite' option is allowed:
storage
{
method "sqlite" ; Currently, only sqlite storage engine is supported
path "/var/db/ndn-repo-ng" ; path to repo-ng storage folder
max-packets 100000
}
; Section to enable TCP bulk insert capability
; If section is present, then TCP bulk insert is enabled (empty section enables
; TCP bulk insert to listen on "localhost:7376")
tcp_bulk_insert {
; host "localhost" ; Set to listen on different IP address or hostname
; port 7376 ; Set to listen on different port number
}
validator
{
; The following rule disables all security in the repo
trust-anchor {
type any
}
; ; These rule are examples of validation of signed interests for commands and data.
; ; User could define its own rule for signed interest or data to be inserted
; ; according to Validator Configuration File Format.
; ; (http://redmine.named-data.net/projects/ndn-cxx/wiki/CommandValidatorConf)
; rule
; {
; id "Simple Rule For Interest"
; for interest
; filter
; {
; type name
; name /example/repo/1
; relation is-prefix-of
; }
; checker
; {
; type fixed-signer
; sig-type rsa-sha256
; signer
; {
; type file
; ; repo-ng.cert.sample is just a non-existent certificate.
; ; User should create its own certification using Security Tool.
; ; (http://redmine.named-data.net/projects/ndn-cxx/wiki/SecurityTools)
; file-name "repo-ng.cert.sample"
; }
; }
; }
;
; rule
; {
; id "Simple Rule For Data"
; for data
; filter
; {
; type name
; name /example/data/1
; relation is-prefix-of
; }
; checker
; {
; type fixed-signer
; sig-type rsa-sha256
; signer
; {
; type file
; ; repo-ng.cert.sample is just a non-existent certificate.
; ; User should create its own certification using Security Tool.
; ; (http://redmine.named-data.net/projects/ndn-cxx/wiki/SecurityTools)
; file-name "repo-ng.cert.sample"
; }
; }
; }
}
}