Fix Bug 774 - NBI+Keystone: Trying to obtain a token with user+password+project gives...
[osm/NBI.git] / osm_nbi / nbi.cfg
1 # Licensed under the Apache License, Version 2.0 (the "License");
2 # you may not use this file except in compliance with the License.
3 # You may obtain a copy of the License at
4 #
5 #    http://www.apache.org/licenses/LICENSE-2.0
6 #
7 # Unless required by applicable law or agreed to in writing, software
8 # distributed under the License is distributed on an "AS IS" BASIS,
9 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10 # implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 [/]
15 # tools.secureheaders.on = True
16 tools.sessions.on = True
17 # increase security on sessions
18 tools.sessions.secure = True
19 tools.sessions.httponly = True
20 tools.encode.on: True,
21 tools.encode.encoding: 'utf-8'
22 tools.response_headers.on = True
23
24 # tools.auth_basic.on: True,
25 # tools.auth_basic.realm: 'localhost',
26 # tools.auth_basic.checkpassword: get_tokens
27
28
29 [/static]
30 tools.staticdir.on: True
31 tools.staticdir.dir: "/app/NBI/osm_nbi/html_public"
32
33
34 [global]
35 server.socket_host: "0.0.0.0"
36 server.socket_port: 9999
37
38 server.ssl_module: "builtin"
39 server.ssl_certificate: "./http/cert.pem"
40 server.ssl_private_key: "./http/privkey.pem"
41 server.ssl_pass_phrase: "osm4u"
42 server.thread_pool: 10
43
44 # Only for test. It works without authorization using the provided user and project:
45 # test.user_not_authorized: "admin"
46 # test.project_not_authorized: "admin"
47
48 # Uncomment for allow basic authentication apart from bearer
49 # auth.allow_basic_authentication: True
50
51 log.screen: False
52 log.access_file: ""
53 log.error_file: ""
54
55 log.level: "DEBUG"
56 #log.file: /var/log/osm/nbi.log
57
58
59 [database]
60 driver: "mongo"            # mongo or memory
61 host:   "mongo"            # hostname or IP
62 port: 27017
63 name: "osm"
64 # user: "user"
65 # password: "password"
66 # commonkey: "commonkey"
67
68 [prometheus]
69 host: "prometheus"         #hostname or IP
70 port: 9090
71
72 loglevel:  "DEBUG"
73 #logfile: /var/log/osm/nbi-database.log
74
75
76 [storage]
77 driver: "local"            # local filesystem
78 # for local provide file path
79 path: "/app/storage"       #"/home/atierno/OSM/osm/NBI/local/storage"
80
81 loglevel:  "DEBUG"
82 #logfile: /var/log/osm/nbi-storage.log
83
84 [message]
85 driver: "kafka"             # local or kafka
86 # for local provide file path
87 path: "/app/storage/kafka"
88 host: "kafka"
89 port: 9092
90
91 loglevel:  "DEBUG"
92 #logfile: /var/log/osm/nbi-message.log
93 group_id: "nbi-server"
94
95 [authentication]
96 backend: "internal"
97
98 [rbac]
99 #resources_to_operations: "resources_to_operations.yml"
100 #roles_to_operations: "roles_to_operations.yml"