Alexander Afanasyev | b4da9eb | 2014-05-24 16:52:17 -0700 | [diff] [blame] | 1 | repo |
| 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:/localhost/repo-ng" |
| 8 | } |
| 9 | |
| 10 | ; Section defining list of command prefixes (to insert or delete Data) to register. |
| 11 | ; Only 'prefix' option is allowed here, which can be repeated multiple times |
| 12 | command |
| 13 | { |
| 14 | prefix "ndn:/localhost/repo-ng" |
| 15 | } |
| 16 | |
| 17 | ; Section to specify where data should be stored |
| 18 | ; Right now only a single 'sqlite' option is allowed: |
| 19 | storage |
| 20 | { |
| 21 | method "sqlite" ; Currently, only sqlite storage engine is supported |
| 22 | path "/var/lib/ndn/repo-ng" ; path to repo-ng storage folder |
Alexander Afanasyev | 201cbe5 | 2014-07-25 14:51:44 -0700 | [diff] [blame] | 23 | max-packets 100000 ; Maximum number of Data packet repo will store |
Alexander Afanasyev | b4da9eb | 2014-05-24 16:52:17 -0700 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | ; Section to enable TCP bulk insert capability |
| 27 | ; If section is present, then TCP bulk insert is enabled (empty section enables |
| 28 | ; TCP bulk insert to listen on "localhost:7376") |
| 29 | tcp_bulk_insert { |
Alexander Afanasyev | 2d6ffb5 | 2014-07-23 14:27:28 -0700 | [diff] [blame] | 30 | host "localhost" ; Set to listen on different IP address or hostname |
| 31 | port 7376 ; Set to listen on different port number |
Alexander Afanasyev | b4da9eb | 2014-05-24 16:52:17 -0700 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | validator |
| 35 | { |
Alexander Afanasyev | 2d6ffb5 | 2014-07-23 14:27:28 -0700 | [diff] [blame] | 36 | ; The following rule disables all security in the repo |
| 37 | trust-anchor { |
| 38 | type any |
| 39 | } |
Alexander Afanasyev | b4da9eb | 2014-05-24 16:52:17 -0700 | [diff] [blame] | 40 | } |
| 41 | } |