d2083670dfb687dbcdae0cc5f1accc1028baee61
[osm/NBI.git] / osm_nbi / nbi.cfg
1 [/]
2 # tools.secureheaders.on = True
3 tools.sessions.on = True
4 # increase security on sessions
5 tools.sessions.secure = True
6 tools.sessions.httponly = True
7 tools.encode.on: True,
8 tools.encode.encoding: 'utf-8'
9 tools.response_headers.on = True
10
11 # tools.auth_basic.on: True,
12 # tools.auth_basic.realm: 'localhost',
13 # tools.auth_basic.checkpassword: get_tokens
14
15
16 [/static]
17 tools.staticdir.on: True
18 tools.staticdir.dir: "/app/osm_nbi/html_public"
19
20
21 [global]
22 server.socket_host: "0.0.0.0"
23 server.socket_port: 9999
24
25 server.ssl_module: "builtin"
26 server.ssl_certificate: "./http/cert.pem"
27 server.ssl_private_key: "./http/privkey.pem"
28 server.ssl_pass_phrase: "osm4u"
29 server.thread_pool: 10
30
31 # Only for test. It works without authorization using the provided user and project:
32 # test.user_not_authorized: "admin"
33 # test.project_not_authorized: "admin"
34
35 # Uncomment for allow basic authentication apart from bearer
36 # auth.allow_basic_authentication: True
37
38 log.screen: False
39 log.access_file: ""
40 log.error_file: ""
41
42 loglevel: "DEBUG"
43 #logfile: /var/log/osm/nbi.log
44
45
46 [database]
47 driver: "mongo"            # mongo or memory
48 host:   "mongo"            # hostname or IP
49 port: 27017
50 name: "osm"
51 user: "user"
52 password: "password"
53
54 loglevel:  "DEBUG"
55 #logfile: /var/log/osm/nbi-database.log
56
57
58 [storage]
59 driver: "local"            # local filesystem
60 # for local provide file path
61 path: "/app/storage"       #"/home/atierno/OSM/osm/NBI/local/storage"
62
63 loglevel:  "DEBUG"
64 #logfile: /var/log/osm/nbi-storage.log
65
66 [message]
67 driver: "kafka"             # local or kafka
68 # for local provide file path
69 path: "/app/storage/kafka"
70 host: "kafka"
71 port: 9092
72
73 loglevel:  "DEBUG"
74 #logfile: /var/log/osm/nbi-message.log
75