-
Notifications
You must be signed in to change notification settings - Fork 1
/
ndn-python-repo.conf
36 lines (31 loc) · 1014 Bytes
/
ndn-python-repo.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
repo_config:
# the repo's routable prefix
repo_name: 'mguard'
# if true, the repo registers the root prefix. If false, client needs to tell repo
# which prefix to register/unregister
register_root: False
db_config:
# choose one among sqlite3, leveldb, and mongodb
db_type: 'sqlite3'
# only the chosen db's config will be read
sqlite3:
'path': '~/.ndn/ndn-python-repo/sqlite3.db' # filepath to sqlite3 database file
leveldb:
'dir': '~/.ndn/ndn-python-repo/leveldb/' # directory to leveldb database files
mongodb:
'db': 'repo'
'collection': 'data'
tcp_bulk_insert:
addr: '0.0.0.0'
port: '7376'
# when register_root is False, whether packets inserted via TCP triggers prefix registration
register_prefix: True
prefixes:
- '/ndn/org/md2k/mguard/dd40c/'
- '/ndn/org/md2k/CK/'
logging_config:
# one of 'CRITICAL', 'ERROR', 'WARNING', 'INFO', 'DEBUG'
level: 'DEBUG'
# absolute path to log file. If not given, logs to stdout
# file: 'repo.log'