blob: f97b0781215e702f479ac9e9c7533a8aa510c984 [file] [log] [blame]
tiernod125caf2018-11-22 16:05:54 +00001# 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
tiernoc94c3df2018-02-09 15:38:54 +010014[/]
15# tools.secureheaders.on = True
16tools.sessions.on = True
17# increase security on sessions
18tools.sessions.secure = True
19tools.sessions.httponly = True
20tools.encode.on: True,
21tools.encode.encoding: 'utf-8'
22tools.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]
30tools.staticdir.on: True
tierno4c57e2e2018-11-16 22:59:35 +010031tools.staticdir.dir: "/app/NBI/osm_nbi/html_public"
tiernoc94c3df2018-02-09 15:38:54 +010032
33
34[global]
35server.socket_host: "0.0.0.0"
36server.socket_port: 9999
37
38server.ssl_module: "builtin"
39server.ssl_certificate: "./http/cert.pem"
40server.ssl_private_key: "./http/privkey.pem"
41server.ssl_pass_phrase: "osm4u"
tierno04dbb0e2019-01-09 16:00:24 +000042server.thread_pool: 10
tiernoc94c3df2018-02-09 15:38:54 +010043
tiernoc94c3df2018-02-09 15:38:54 +010044# Uncomment for allow basic authentication apart from bearer
45# auth.allow_basic_authentication: True
46
tierno4836bac2020-01-15 14:41:48 +000047# comment or set to False to disable /test URL
48server.enable_test: True
49
tiernoc94c3df2018-02-09 15:38:54 +010050log.screen: False
51log.access_file: ""
52log.error_file: ""
53
tiernof5298be2018-05-16 14:43:57 +020054log.level: "DEBUG"
55#log.file: /var/log/osm/nbi.log
tiernoc94c3df2018-02-09 15:38:54 +010056
57
58[database]
59driver: "mongo" # mongo or memory
60host: "mongo" # hostname or IP
61port: 27017
62name: "osm"
tiernod985a8d2018-10-19 14:12:28 +020063# user: "user"
64# password: "password"
tierno92c1c7d2018-11-12 15:22:37 +010065# commonkey: "commonkey"
tiernoc94c3df2018-02-09 15:38:54 +010066
vijay.r35ef2f72019-04-30 17:55:49 +053067[prometheus]
68host: "prometheus" #hostname or IP
69port: 9090
70
tiernoc94c3df2018-02-09 15:38:54 +010071loglevel: "DEBUG"
72#logfile: /var/log/osm/nbi-database.log
73
tiernoc94c3df2018-02-09 15:38:54 +010074[storage]
75driver: "local" # local filesystem
76# for local provide file path
77path: "/app/storage" #"/home/atierno/OSM/osm/NBI/local/storage"
78
79loglevel: "DEBUG"
80#logfile: /var/log/osm/nbi-storage.log
81
82[message]
83driver: "kafka" # local or kafka
84# for local provide file path
85path: "/app/storage/kafka"
86host: "kafka"
87port: 9092
88
89loglevel: "DEBUG"
90#logfile: /var/log/osm/nbi-message.log
Eduardo Sousa705ba382018-12-19 13:34:48 +000091group_id: "nbi-server"
tiernoc94c3df2018-02-09 15:38:54 +010092
Eduardo Sousa819d34c2018-07-31 01:20:02 +010093[authentication]
tiernoe1eb3b22019-08-26 15:59:24 +000094backend: "internal" # internal or keystone
tierno6486f742020-02-13 16:30:14 +000095# for keystone backend a comma separated list of user adn project _domain_name list can ba provided.
96# NBI will try authenticate with all of then if domain is not provided in the content of a POST token
97# user_domain_name: "default,ldap"
98# project_domain_name: "default,ldap"
99
K Sai Kiran990ac462020-05-20 12:25:12 +0530100# Keystone config parameters are
101# auth_url: format https://<ip>:<port>/v3 # v3 is necessary
102# auth_host: ip address of keystone host.
103# auth_port: port number of keystone.
104# Provide either auth_url or (auth_host and auth_port)
105# service_username: "nbi"
106# service_password: "nbi"
107
tiernoe1eb3b22019-08-26 15:59:24 +0000108# Only for test. It works without authorization using the provided user and project:
109# user_not_authorized: "admin"
110# project_not_authorized: "admin"
Eduardo Sousa29933fc2018-11-14 06:36:35 +0000111
112[rbac]
tierno701018c2019-06-25 11:13:14 +0000113# roles_to_operations: "roles_to_operations.yml" # initial role generation when database