blob: 82b11bce27dec63f8e4a7b5b2212fd2626ccb390 [file] [log] [blame]
Shuo Chen478204c2014-03-18 18:27:04 -07001repo
2{
Davide Pesavento4a160042020-04-13 16:50:02 -04003 ; Section defining the list of Data prefixes to register.
4 ; Additionally defines how many components off the end of these Data prefixes to insert into NFD.
5 ; The 'prefix' option can be repeated multiple times.
Nick Gordon190e4dc2017-10-04 16:54:10 -05006 ; 'registration-subset' defines how many components to exclude. This includes the implicit digest
Davide Pesavento4a160042020-04-13 16:50:02 -04007 ; 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
Davide Pesavento4a160042020-04-13 16:50:02 -040015 ; Section defining the list of command prefixes (to insert or delete Data) to register.
Shuo Chen478204c2014-03-18 18:27:04 -070016 command
17 {
Davide Pesaventoe9b09b82023-01-19 13:30:07 -050018 ; Only the 'prefix' option is allowed here and it can be repeated multiple times.
Shuo Chen478204c2014-03-18 18:27:04 -070019 prefix "ndn:/example/repo/1"
20 prefix "ndn:/example/repo/2"
21 }
22
Davide Pesavento4a160042020-04-13 16:50:02 -040023 ; Section to specify where the data should be stored.
Shuo Chen478204c2014-03-18 18:27:04 -070024 storage
25 {
Davide Pesavento4a160042020-04-13 16:50:02 -040026 method "sqlite" ; Currently, only the sqlite storage engine is supported
Davide Pesavento4162cc52019-01-25 01:32:30 -050027 path "/var/lib/ndn/repo-ng" ; Path to repo-ng storage folder
Weiqi Shif0330d52014-07-09 10:54:27 -070028 max-packets 100000
Shuo Chen478204c2014-03-18 18:27:04 -070029 }
30
Davide Pesavento4a160042020-04-13 16:50:02 -040031 ; Section to configure the TCP bulk insert capability.
32 ; An empty section enables TCP bulk insert to listen on localhost, port 7376.
Davide Pesavento4162cc52019-01-25 01:32:30 -050033 tcp_bulk_insert
34 {
35 ; host "localhost" ; Set to listen on a different IP address or hostname
36 ; port 7376 ; Set to listen on a different port number
Shuo Chen478204c2014-03-18 18:27:04 -070037 }
38
39 validator
40 {
Weiqi Shif0330d52014-07-09 10:54:27 -070041 ; The following rule disables all security in the repo
Davide Pesavento4162cc52019-01-25 01:32:30 -050042 trust-anchor
43 {
44 type any
Shuo Chen5d9c4192014-06-21 16:25:38 +080045 }
Shuo Chenc88c87d2014-06-25 20:21:02 +080046
Davide Pesaventoe9b09b82023-01-19 13:30:07 -050047 ; The following rules are examples to validate signed Interests for commands and data.
48 ; One can define their own rules for signed Interests and Data packets to be inserted
49 ; according to the Validator Configuration File Format.
50 ; See https://docs.named-data.net/ndn-cxx/current/tutorials/security-validator-config.html
51 ;
Weiqi Shif0330d52014-07-09 10:54:27 -070052 ; rule
53 ; {
Davide Pesavento4a160042020-04-13 16:50:02 -040054 ; id "Simple Rule For Interests"
Weiqi Shif0330d52014-07-09 10:54:27 -070055 ; for interest
56 ; filter
57 ; {
58 ; type name
59 ; name /example/repo/1
60 ; relation is-prefix-of
61 ; }
62 ; checker
63 ; {
64 ; type fixed-signer
65 ; sig-type rsa-sha256
66 ; signer
67 ; {
68 ; type file
Davide Pesavento4a160042020-04-13 16:50:02 -040069 ; ; repo-ng.cert.sample is a non-existent certificate.
70 ; ; One should create their certificates using the ndnsec tool.
Weiqi Shif0330d52014-07-09 10:54:27 -070071 ; 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
Davide Pesavento4a160042020-04-13 16:50:02 -040093 ; ; repo-ng.cert.sample is a non-existent certificate.
94 ; ; One should create their certificates using the ndnsec tool.
Weiqi Shif0330d52014-07-09 10:54:27 -070095 ; file-name "repo-ng.cert.sample"
96 ; }
97 ; }
98 ; }
Shuo Chen478204c2014-03-18 18:27:04 -070099 }
Davide Pesavento4162cc52019-01-25 01:32:30 -0500100}