blob: 923fe8232af1a7c61ac22d1ed118d8a80960054c [file] [log] [blame]
Shuo Chen478204c2014-03-18 18:27:04 -07001repo
2{
3 ; Section defining list of Data prefixes to register
Nick Gordon190e4dc2017-10-04 16:54:10 -05004 ; Additionally define how many components off the end of data prefixes to insert into NFD
5 ; 'prefix' option can be repeated multiple times
6 ; 'registration-subset' defines how many components to exclude. This includes the implicit digest
7 ; at the end of the data name.
Shuo Chen478204c2014-03-18 18:27:04 -07008 data
9 {
Nick Gordon190e4dc2017-10-04 16:54:10 -050010 registration-subset 2
Shuo Chen478204c2014-03-18 18:27:04 -070011 prefix "ndn:/example/data/1"
12 prefix "ndn:/example/data/2"
13 }
14
15 ; Section defining list of command prefixes (to insert or delete Data) to register.
16 ; Only 'prefix' option is allowed here, which can be repeated multiple times
17 command
18 {
19 prefix "ndn:/example/repo/1"
20 prefix "ndn:/example/repo/2"
21 }
22
23 ; Section to specify where data should be stored
24 ; Right now only a single 'sqlite' option is allowed:
25 storage
26 {
27 method "sqlite" ; Currently, only sqlite storage engine is supported
28 path "/var/db/ndn-repo-ng" ; path to repo-ng storage folder
Weiqi Shif0330d52014-07-09 10:54:27 -070029 max-packets 100000
Shuo Chen478204c2014-03-18 18:27:04 -070030 }
31
32 ; Section to enable TCP bulk insert capability
33 ; If section is present, then TCP bulk insert is enabled (empty section enables
34 ; TCP bulk insert to listen on "localhost:7376")
35 tcp_bulk_insert {
36 ; host "localhost" ; Set to listen on different IP address or hostname
37 ; port 7376 ; Set to listen on different port number
38 }
39
40 validator
41 {
Weiqi Shif0330d52014-07-09 10:54:27 -070042 ; The following rule disables all security in the repo
43 trust-anchor {
44 type any
Shuo Chen5d9c4192014-06-21 16:25:38 +080045 }
Shuo Chenc88c87d2014-06-25 20:21:02 +080046
Weiqi Shif0330d52014-07-09 10:54:27 -070047 ; ; These rule are examples of validation of signed interests for commands and data.
48 ; ; User could define its own rule for signed interest or data to be inserted
49 ; ; according to Validator Configuration File Format.
50 ; ; (http://redmine.named-data.net/projects/ndn-cxx/wiki/CommandValidatorConf)
51 ; rule
52 ; {
53 ; id "Simple Rule For Interest"
54 ; for interest
55 ; filter
56 ; {
57 ; type name
58 ; name /example/repo/1
59 ; relation is-prefix-of
60 ; }
61 ; checker
62 ; {
63 ; type fixed-signer
64 ; sig-type rsa-sha256
65 ; signer
66 ; {
67 ; type file
68 ; ; repo-ng.cert.sample is just a non-existent certificate.
69 ; ; User should create its own certification using Security Tool.
70 ; ; (http://redmine.named-data.net/projects/ndn-cxx/wiki/SecurityTools)
71 ; file-name "repo-ng.cert.sample"
72 ; }
73 ; }
74 ; }
75 ;
76 ; rule
77 ; {
78 ; id "Simple Rule For Data"
79 ; for data
80 ; filter
81 ; {
82 ; type name
83 ; name /example/data/1
84 ; relation is-prefix-of
85 ; }
86 ; checker
87 ; {
88 ; type fixed-signer
89 ; sig-type rsa-sha256
90 ; signer
91 ; {
92 ; type file
93 ; ; repo-ng.cert.sample is just a non-existent certificate.
94 ; ; User should create its own certification using Security Tool.
95 ; ; (http://redmine.named-data.net/projects/ndn-cxx/wiki/SecurityTools)
96 ; file-name "repo-ng.cert.sample"
97 ; }
98 ; }
99 ; }
Shuo Chen478204c2014-03-18 18:27:04 -0700100 }
101}