blob: aa4a6b3160f111ff07c83e10a6a4334ac480e6a1 [file] [log] [blame]
Shuo Chen478204c2014-03-18 18:27:04 -07001repo
2{
3 ; Section defining list of Data prefixes to register
4 ; Only 'prefix' option is allowed here, which can be repeated multiple times
5 data
6 {
7 prefix "ndn:/example/data/1"
8 prefix "ndn:/example/data/2"
9 }
10
11 ; Section defining list of command prefixes (to insert or delete Data) to register.
12 ; Only 'prefix' option is allowed here, which can be repeated multiple times
13 command
14 {
15 prefix "ndn:/example/repo/1"
16 prefix "ndn:/example/repo/2"
17 }
18
19 ; Section to specify where data should be stored
20 ; Right now only a single 'sqlite' option is allowed:
21 storage
22 {
23 method "sqlite" ; Currently, only sqlite storage engine is supported
24 path "/var/db/ndn-repo-ng" ; path to repo-ng storage folder
25 }
26
27 ; Section to enable TCP bulk insert capability
28 ; If section is present, then TCP bulk insert is enabled (empty section enables
29 ; TCP bulk insert to listen on "localhost:7376")
30 tcp_bulk_insert {
31 ; host "localhost" ; Set to listen on different IP address or hostname
32 ; port 7376 ; Set to listen on different port number
33 }
34
35 validator
36 {
Shuo Chenc88c87d2014-06-25 20:21:02 +080037 ; These rule is just an example of validation of signed interests for commands and data.
38 ; User could define its own rule for signed interest or data to be inserted
Shuo Chen5d9c4192014-06-21 16:25:38 +080039 ; according to Validator Configuration File Format.
40 ; (http://redmine.named-data.net/projects/ndn-cxx/wiki/CommandValidatorConf)
41 rule
42 {
43 id "Simple Rule For Interest"
44 for interest
45 filter
46 {
47 type name
48 name /example/repo/1
49 relation is-prefix-of
50 }
51 checker
52 {
53 type fixed-signer
54 sig-type rsa-sha256
55 signer
56 {
57 type file
58 ; repo-ng.cert.sample is just a non-existent certificate.
59 ; User should create its own certification using Security Tool.
60 ; (http://redmine.named-data.net/projects/ndn-cxx/wiki/SecurityTools)
61 file-name "repo-ng.cert.sample"
62 }
63 }
64 }
Shuo Chenc88c87d2014-06-25 20:21:02 +080065
66 rule
67 {
68 id "Simple Rule For Data"
69 for data
70 filter
71 {
72 type name
73 name /example/data/1
74 relation is-prefix-of
75 }
76 checker
77 {
78 type fixed-signer
79 sig-type rsa-sha256
80 signer
81 {
82 type file
83 ; repo-ng.cert.sample is just a non-existent certificate.
84 ; User should create its own certification using Security Tool.
85 ; (http://redmine.named-data.net/projects/ndn-cxx/wiki/SecurityTools)
86 file-name "repo-ng.cert.sample"
87 }
88 }
89 }
Shuo Chen478204c2014-03-18 18:27:04 -070090 }
91}