X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fnbi.cfg;h=f97b0781215e702f479ac9e9c7533a8aa510c984;hp=d2083670dfb687dbcdae0cc5f1accc1028baee61;hb=refs%2Fchanges%2F25%2F9025%2F1;hpb=c94c3df90aa64298a7935a80b221f80f3c043260;ds=sidebyside diff --git a/osm_nbi/nbi.cfg b/osm_nbi/nbi.cfg index d208367..f97b078 100644 --- a/osm_nbi/nbi.cfg +++ b/osm_nbi/nbi.cfg @@ -1,3 +1,16 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [/] # tools.secureheaders.on = True tools.sessions.on = True @@ -15,7 +28,7 @@ tools.response_headers.on = True [/static] tools.staticdir.on: True -tools.staticdir.dir: "/app/osm_nbi/html_public" +tools.staticdir.dir: "/app/NBI/osm_nbi/html_public" [global] @@ -28,19 +41,18 @@ server.ssl_private_key: "./http/privkey.pem" server.ssl_pass_phrase: "osm4u" server.thread_pool: 10 -# Only for test. It works without authorization using the provided user and project: -# test.user_not_authorized: "admin" -# test.project_not_authorized: "admin" - # Uncomment for allow basic authentication apart from bearer # auth.allow_basic_authentication: True +# comment or set to False to disable /test URL +server.enable_test: True + log.screen: False log.access_file: "" log.error_file: "" -loglevel: "DEBUG" -#logfile: /var/log/osm/nbi.log +log.level: "DEBUG" +#log.file: /var/log/osm/nbi.log [database] @@ -48,13 +60,17 @@ driver: "mongo" # mongo or memory host: "mongo" # hostname or IP port: 27017 name: "osm" -user: "user" -password: "password" +# user: "user" +# password: "password" +# commonkey: "commonkey" + +[prometheus] +host: "prometheus" #hostname or IP +port: 9090 loglevel: "DEBUG" #logfile: /var/log/osm/nbi-database.log - [storage] driver: "local" # local filesystem # for local provide file path @@ -72,4 +88,26 @@ port: 9092 loglevel: "DEBUG" #logfile: /var/log/osm/nbi-message.log +group_id: "nbi-server" + +[authentication] +backend: "internal" # internal or keystone +# for keystone backend a comma separated list of user adn project _domain_name list can ba provided. +# NBI will try authenticate with all of then if domain is not provided in the content of a POST token +# user_domain_name: "default,ldap" +# project_domain_name: "default,ldap" + +# Keystone config parameters are +# auth_url: format https://:/v3 # v3 is necessary +# auth_host: ip address of keystone host. +# auth_port: port number of keystone. +# Provide either auth_url or (auth_host and auth_port) +# service_username: "nbi" +# service_password: "nbi" + +# Only for test. It works without authorization using the provided user and project: +# user_not_authorized: "admin" +# project_not_authorized: "admin" +[rbac] +# roles_to_operations: "roles_to_operations.yml" # initial role generation when database