Chengyu Fan | b25835b | 2015-04-28 17:09:35 -0600 | [diff] [blame] | 1 | ; The catalog section contains settings of catalog |
| 2 | general |
| 3 | { |
| 4 | ; Set the catalog prefix, so that adapters can extend it as their own prefix |
| 5 | ; e.g., suppose that the catalog has the prefix "ndn:/cmip5", so QueryAdapter has the prefix |
| 6 | ; "ndn:/cmip5/catalog/query" and "ndn:/cmip5/catalog/query-results", |
| 7 | ; PublishAdapter has the prefix "ndn:/cmip5/catalog/publish" |
| 8 | |
| 9 | prefix /catalog/myUniqueName |
| 10 | } |
| 11 | |
| 12 | ; The queryAdapter section contains settings of queryAdapter |
| 13 | queryAdapter |
| 14 | { |
| 15 | ; signingId ndn:/cmip5/test/query/identity; Set the Identity that signs data that respond |
| 16 | ; the queries |
| 17 | |
| 18 | ; The database section contains settings of database for QueryAdapter |
| 19 | database |
| 20 | { |
| 21 | dbServer 127.0.0.1 ; Specify the database server |
| 22 | dbName testdb ; Specify the database name |
| 23 | dbUser testuser1 ; Specify the database user name |
| 24 | dbPasswd test123 ; Specify the associated password for the dbUser |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | ; The publishAdapter section contains settings of publishAdapter |
| 29 | publishAdapter |
| 30 | { |
| 31 | ; ; Set the identity that signs published data |
| 32 | ; signingId ndn:/cmip5/test/publish/identity |
| 33 | |
| 34 | ; ; The published_file_security section contains the rules for the adapter to verify the |
| 35 | ; ; published files indeed come from a valid publisher. |
| 36 | ; published_file_security |
| 37 | ; { |
| 38 | ; } |
| 39 | |
| 40 | ; The database section contains settings of database |
| 41 | ; The user in publishAdapter may differ from the one in queryAdapter, to provide different |
| 42 | ; access control |
| 43 | database |
| 44 | { |
| 45 | dbServer 127.0.0.1 ; Specify the database server |
| 46 | dbName testdb ; Specify the database name |
| 47 | dbUser testuser2 ; Specify the database user name |
| 48 | dbPasswd test123 ; Specify the associated password for the dbUser |
| 49 | } |
| 50 | |
| 51 | ; The sync section contains settings of ChronoSync |
| 52 | sync |
| 53 | { |
| 54 | ; Set the prefix for sync messages, default 'ndn:/ndn/broadcast' |
| 55 | prefix ndn:/ndn/broadcast |
| 56 | |
| 57 | ; ; The sync_data_security section contains the rules that are required for ChronoSync nodes to |
| 58 | ; ; verify published data by other ChronoSync nodes. |
| 59 | ; ; The ChronoSync validator will be disabled when sync_data_security section is missing. |
| 60 | ; sync_data_security |
| 61 | ; { |
| 62 | ; ; ; This section defines the trust model for the ChronoSync data Management. It consists of |
| 63 | ; ; ; rules and trust-anchors, which are briefly defined in this file. Multiple rules can be |
| 64 | ; ; ; included |
| 65 | ; ; rule |
| 66 | ; ; { |
| 67 | ; ; id "ChronoSync Update Messages Rule" |
| 68 | ; ; for data ; rule for Data (to validate NDN certificates) |
| 69 | ; ; filter |
| 70 | ; ; { |
| 71 | ; ; type name ; condition on data name |
| 72 | ; ; regex ^[^<KEY>]*<KEY><>*<ksk-.*><ID-CERT><>$ |
| 73 | ; ; } |
| 74 | ; ; checker |
| 75 | ; ; { |
| 76 | ; ; type hierarchical ; the certificate name of the signing key and |
| 77 | ; ; ; the data name must follow the hierarchical model |
| 78 | ; ; sig-type rsa-sha256 ; data must have a rsa-sha256 signature |
| 79 | ; ; } |
| 80 | ; ; } |
| 81 | ; ; trust-anchor |
| 82 | ; ; { |
| 83 | ; ; type file |
| 84 | ; ; file-name keys/default.ndncert ; the file name, by default this file should be placed in |
| 85 | ; ; ; the same folder as this config file. |
| 86 | ; ; } |
| 87 | ; } |
| 88 | } |
| 89 | } |