Project

General

Profile

Task #4374 ยป repo-ng.conf

repo-ng configuration file - Peter Gusev, 11/01/2017 09:33 AM

 
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:/icear/content-provider/data"
8
    ;prefix "ndn:/example/data/2"
9
  }
10

    
11
  ; Section defining list of command prefixes (to insert or delete Data) to register.
12
  ; Only 'prefix' option is allowed here, which can be repeated multiple times
13
  command
14
  {
15
    prefix "ndn:/icear/content-provider/1"
16
    prefix "ndn:/example/repo/2"
17
  }
18

    
19
  ; Section to specify where data should be stored
20
  ; Right now only a single 'sqlite' option is allowed:
21
  storage
22
  {
23
    method "sqlite"             ; Currently, only sqlite storage engine is supported
24
    path "/var/db/ndn-repo-ng"  ; path to repo-ng storage folder
25
    max-packets 100000
26
  }
27

    
28
  ; Section to enable TCP bulk insert capability
29
  ; If section is present, then TCP bulk insert is enabled (empty section enables
30
  ; TCP bulk insert to listen on "localhost:7376")
31
  tcp_bulk_insert {
32
    ; host "localhost"  ; Set to listen on different IP address or hostname
33
    ; port 7376  ; Set to listen on different port number
34
  }
35

    
36
  validator
37
  {
38
    ; The following rule disables all security in the repo
39
    trust-anchor {
40
        type any
41
    }
42

    
43
    ; ; These rule are examples of validation of signed interests for commands and data.
44
    ; ; User could define its own rule for signed interest or data to be inserted
45
    ; ; according to Validator Configuration File Format.
46
    ; ; (http://redmine.named-data.net/projects/ndn-cxx/wiki/CommandValidatorConf)
47
    ; rule
48
    ; {
49
    ;   id "Simple Rule For Interest"
50
    ;   for interest
51
    ;   filter
52
    ;   {
53
    ;     type name
54
    ;     name /example/repo/1
55
    ;     relation is-prefix-of
56
    ;   }
57
    ;   checker
58
    ;   {
59
    ;     type fixed-signer
60
    ;     sig-type rsa-sha256
61
    ;     signer
62
    ;     {
63
    ;       type file
64
    ;       ; repo-ng.cert.sample is just a non-existent certificate.
65
    ;       ; User should create its own certification using Security Tool.
66
    ;       ; (http://redmine.named-data.net/projects/ndn-cxx/wiki/SecurityTools)
67
    ;       file-name "repo-ng.cert.sample"
68
    ;     }
69
    ;   }
70
    ; }
71
    ;
72
    ; rule
73
    ; {
74
    ;   id "Simple Rule For Data"
75
    ;   for data
76
    ;   filter
77
    ;   {
78
    ;     type name
79
    ;     name /example/data/1
80
    ;     relation is-prefix-of
81
    ;   }
82
    ;   checker
83
    ;   {
84
    ;     type fixed-signer
85
    ;     sig-type rsa-sha256
86
    ;     signer
87
    ;     {
88
    ;       type file
89
    ;       ; repo-ng.cert.sample is just a non-existent certificate.
90
    ;       ; User should create its own certification using Security Tool.
91
    ;       ; (http://redmine.named-data.net/projects/ndn-cxx/wiki/SecurityTools)
92
    ;       file-name "repo-ng.cert.sample"
93
    ;     }
94
    ;   }
95
    ; }
96
  }
97
}
    (1-1/1)