blob: 8c6dc4c8ff35ba20de8c99d3b76dc2b0f99abc7b [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
Weiqi Shif0330d52014-07-09 10:54:27 -070025 max-packets 100000
Shuo Chen478204c2014-03-18 18:27:04 -070026 }
27
28 ; Section to enable TCP bulk insert capability
29 ; If section is present, then TCP bulk insert is enabled (empty section enables
30 ; TCP bulk insert to listen on "localhost:7376")
31 tcp_bulk_insert {
32 ; host "localhost" ; Set to listen on different IP address or hostname
33 ; port 7376 ; Set to listen on different port number
34 }
35
36 validator
37 {
Weiqi Shif0330d52014-07-09 10:54:27 -070038 ; The following rule disables all security in the repo
39 trust-anchor {
40 type any
Shuo Chen5d9c4192014-06-21 16:25:38 +080041 }
Shuo Chenc88c87d2014-06-25 20:21:02 +080042
Weiqi Shif0330d52014-07-09 10:54:27 -070043 ; ; These rule are examples of validation of signed interests for commands and data.
44 ; ; User could define its own rule for signed interest or data to be inserted
45 ; ; according to Validator Configuration File Format.
46 ; ; (http://redmine.named-data.net/projects/ndn-cxx/wiki/CommandValidatorConf)
47 ; rule
48 ; {
49 ; id "Simple Rule For Interest"
50 ; for interest
51 ; filter
52 ; {
53 ; type name
54 ; name /example/repo/1
55 ; relation is-prefix-of
56 ; }
57 ; checker
58 ; {
59 ; type fixed-signer
60 ; sig-type rsa-sha256
61 ; signer
62 ; {
63 ; type file
64 ; ; repo-ng.cert.sample is just a non-existent certificate.
65 ; ; User should create its own certification using Security Tool.
66 ; ; (http://redmine.named-data.net/projects/ndn-cxx/wiki/SecurityTools)
67 ; file-name "repo-ng.cert.sample"
68 ; }
69 ; }
70 ; }
71 ;
72 ; rule
73 ; {
74 ; id "Simple Rule For Data"
75 ; for data
76 ; filter
77 ; {
78 ; type name
79 ; name /example/data/1
80 ; relation is-prefix-of
81 ; }
82 ; checker
83 ; {
84 ; type fixed-signer
85 ; sig-type rsa-sha256
86 ; signer
87 ; {
88 ; type file
89 ; ; repo-ng.cert.sample is just a non-existent certificate.
90 ; ; User should create its own certification using Security Tool.
91 ; ; (http://redmine.named-data.net/projects/ndn-cxx/wiki/SecurityTools)
92 ; file-name "repo-ng.cert.sample"
93 ; }
94 ; }
95 ; }
Shuo Chen478204c2014-03-18 18:27:04 -070096 }
97}