blob: 31a508e09ab909df3c26b2f1ab53b488a79cbedc [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 Chen5d9c4192014-06-21 16:25:38 +080037 ; This rule is just an example of validation of signed interests for commands.
38 ; User could define its own rule for signed command interest or data to be inserted
39 ; 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 Chen478204c2014-03-18 18:27:04 -070065 }
66}