blob: 6a55fd74d5701d187b7906d649ecfcc13001d4fb [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 {
Davide Pesavento4162cc52019-01-25 01:32:30 -050027 method "sqlite" ; Currently, only sqlite storage engine is supported
28 path "/var/lib/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")
Davide Pesavento4162cc52019-01-25 01:32:30 -050035 tcp_bulk_insert
36 {
37 ; host "localhost" ; Set to listen on a different IP address or hostname
38 ; port 7376 ; Set to listen on a different port number
Shuo Chen478204c2014-03-18 18:27:04 -070039 }
40
41 validator
42 {
Weiqi Shif0330d52014-07-09 10:54:27 -070043 ; The following rule disables all security in the repo
Davide Pesavento4162cc52019-01-25 01:32:30 -050044 trust-anchor
45 {
46 type any
Shuo Chen5d9c4192014-06-21 16:25:38 +080047 }
Shuo Chenc88c87d2014-06-25 20:21:02 +080048
Weiqi Shif0330d52014-07-09 10:54:27 -070049 ; ; These rule are examples of validation of signed interests for commands and data.
50 ; ; User could define its own rule for signed interest or data to be inserted
51 ; ; according to Validator Configuration File Format.
52 ; ; (http://redmine.named-data.net/projects/ndn-cxx/wiki/CommandValidatorConf)
53 ; rule
54 ; {
55 ; id "Simple Rule For Interest"
56 ; for interest
57 ; filter
58 ; {
59 ; type name
60 ; name /example/repo/1
61 ; relation is-prefix-of
62 ; }
63 ; checker
64 ; {
65 ; type fixed-signer
66 ; sig-type rsa-sha256
67 ; signer
68 ; {
69 ; type file
70 ; ; repo-ng.cert.sample is just a non-existent certificate.
71 ; ; User should create its own certification using Security Tool.
72 ; ; (http://redmine.named-data.net/projects/ndn-cxx/wiki/SecurityTools)
73 ; file-name "repo-ng.cert.sample"
74 ; }
75 ; }
76 ; }
77 ;
78 ; rule
79 ; {
80 ; id "Simple Rule For Data"
81 ; for data
82 ; filter
83 ; {
84 ; type name
85 ; name /example/data/1
86 ; relation is-prefix-of
87 ; }
88 ; checker
89 ; {
90 ; type fixed-signer
91 ; sig-type rsa-sha256
92 ; signer
93 ; {
94 ; type file
95 ; ; repo-ng.cert.sample is just a non-existent certificate.
96 ; ; User should create its own certification using Security Tool.
97 ; ; (http://redmine.named-data.net/projects/ndn-cxx/wiki/SecurityTools)
98 ; file-name "repo-ng.cert.sample"
99 ; }
100 ; }
101 ; }
Shuo Chen478204c2014-03-18 18:27:04 -0700102 }
Davide Pesavento4162cc52019-01-25 01:32:30 -0500103}