blob: 07956ed624e96eac14a3612cebea40d57dce01ca [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"
51user: "user"
52password: "password"
53
54loglevel: "DEBUG"
55#logfile: /var/log/osm/nbi-database.log
56
57
58[storage]
59driver: "local" # local filesystem
60# for local provide file path
61path: "/app/storage" #"/home/atierno/OSM/osm/NBI/local/storage"
62
63loglevel: "DEBUG"
64#logfile: /var/log/osm/nbi-storage.log
65
66[message]
67driver: "kafka" # local or kafka
68# for local provide file path
69path: "/app/storage/kafka"
70host: "kafka"
71port: 9092
72
73loglevel: "DEBUG"
74#logfile: /var/log/osm/nbi-message.log
75
Eduardo Sousa819d34c2018-07-31 01:20:02 +010076[authentication]
77backend: "internal"