blob: 215211d6dac0e3551e94ef9f4d1b125119708be8 [file] [log] [blame]
tiernoc94c3df2018-02-09 15:38:54 +01001[/]
2# tools.secureheaders.on = True
3tools.sessions.on = True
4# increase security on sessions
5tools.sessions.secure = True
6tools.sessions.httponly = True
7tools.encode.on: True,
8tools.encode.encoding: 'utf-8'
9tools.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]
17tools.staticdir.on: True
18tools.staticdir.dir: "/app/osm_nbi/html_public"
19
20
21[global]
22server.socket_host: "0.0.0.0"
23server.socket_port: 9999
24
25server.ssl_module: "builtin"
26server.ssl_certificate: "./http/cert.pem"
27server.ssl_private_key: "./http/privkey.pem"
28server.ssl_pass_phrase: "osm4u"
tierno0f98af52018-03-19 10:28:22 +010029server.thread_pool: 1
tiernoc94c3df2018-02-09 15:38:54 +010030
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
38log.screen: False
39log.access_file: ""
40log.error_file: ""
41
tiernof5298be2018-05-16 14:43:57 +020042log.level: "DEBUG"
43#log.file: /var/log/osm/nbi.log
tiernoc94c3df2018-02-09 15:38:54 +010044
45
46[database]
47driver: "mongo" # mongo or memory
48host: "mongo" # hostname or IP
49port: 27017
50name: "osm"
tiernod985a8d2018-10-19 14:12:28 +020051# user: "user"
52# password: "password"
53# materpassword: "mpasswd"
tiernoc94c3df2018-02-09 15:38:54 +010054
55loglevel: "DEBUG"
56#logfile: /var/log/osm/nbi-database.log
57
58
59[storage]
60driver: "local" # local filesystem
61# for local provide file path
62path: "/app/storage" #"/home/atierno/OSM/osm/NBI/local/storage"
63
64loglevel: "DEBUG"
65#logfile: /var/log/osm/nbi-storage.log
66
67[message]
68driver: "kafka" # local or kafka
69# for local provide file path
70path: "/app/storage/kafka"
71host: "kafka"
72port: 9092
73
74loglevel: "DEBUG"
75#logfile: /var/log/osm/nbi-message.log
76
Eduardo Sousa819d34c2018-07-31 01:20:02 +010077[authentication]
78backend: "internal"