Shuo Chen | 478204c | 2014-03-18 18:27:04 -0700 | [diff] [blame] | 1 | repo |
| 2 | { |
| 3 | ; Section defining list of Data prefixes to register |
Nick Gordon | 190e4dc | 2017-10-04 16:54:10 -0500 | [diff] [blame] | 4 | ; 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 Chen | 478204c | 2014-03-18 18:27:04 -0700 | [diff] [blame] | 8 | data |
| 9 | { |
Nick Gordon | 190e4dc | 2017-10-04 16:54:10 -0500 | [diff] [blame] | 10 | registration-subset 2 |
Shuo Chen | 478204c | 2014-03-18 18:27:04 -0700 | [diff] [blame] | 11 | 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 Shi | f0330d5 | 2014-07-09 10:54:27 -0700 | [diff] [blame] | 29 | max-packets 100000 |
Shuo Chen | 478204c | 2014-03-18 18:27:04 -0700 | [diff] [blame] | 30 | } |
| 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 Shi | f0330d5 | 2014-07-09 10:54:27 -0700 | [diff] [blame] | 42 | ; The following rule disables all security in the repo |
| 43 | trust-anchor { |
| 44 | type any |
Shuo Chen | 5d9c419 | 2014-06-21 16:25:38 +0800 | [diff] [blame] | 45 | } |
Shuo Chen | c88c87d | 2014-06-25 20:21:02 +0800 | [diff] [blame] | 46 | |
Weiqi Shi | f0330d5 | 2014-07-09 10:54:27 -0700 | [diff] [blame] | 47 | ; ; 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 Chen | 478204c | 2014-03-18 18:27:04 -0700 | [diff] [blame] | 100 | } |
| 101 | } |