| tierno | d125caf | 2018-11-22 16:05:54 +0000 | [diff] [blame] | 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 | |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 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 |
| tierno | 4c57e2e | 2018-11-16 22:59:35 +0100 | [diff] [blame] | 31 | tools.staticdir.dir: "/app/NBI/osm_nbi/html_public" |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 32 | |
| 33 | |
| 34 | [global] |
| 35 | server.socket_host: "0.0.0.0" |
| 36 | server.socket_port: 9999 |
| tierno | 04dbb0e | 2019-01-09 16:00:24 +0000 | [diff] [blame] | 37 | server.thread_pool: 10 |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 38 | |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 39 | # Uncomment for allow basic authentication apart from bearer |
| 40 | # auth.allow_basic_authentication: True |
| 41 | |
| tierno | 4836bac | 2020-01-15 14:41:48 +0000 | [diff] [blame] | 42 | # comment or set to False to disable /test URL |
| 43 | server.enable_test: True |
| 44 | |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 45 | log.screen: False |
| 46 | log.access_file: "" |
| 47 | log.error_file: "" |
| 48 | |
| tierno | f5298be | 2018-05-16 14:43:57 +0200 | [diff] [blame] | 49 | log.level: "DEBUG" |
| 50 | #log.file: /var/log/osm/nbi.log |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 51 | |
| 52 | |
| 53 | [database] |
| 54 | driver: "mongo" # mongo or memory |
| 55 | host: "mongo" # hostname or IP |
| 56 | port: 27017 |
| 57 | name: "osm" |
| Vijay Nag B S | 1b23c36 | 2020-09-29 17:28:51 +0530 | [diff] [blame] | 58 | # replicaset: "replicaset" |
| tierno | d985a8d | 2018-10-19 14:12:28 +0200 | [diff] [blame] | 59 | # user: "user" |
| 60 | # password: "password" |
| tierno | 92c1c7d | 2018-11-12 15:22:37 +0100 | [diff] [blame] | 61 | # commonkey: "commonkey" |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 62 | |
| vijay.r | 35ef2f7 | 2019-04-30 17:55:49 +0530 | [diff] [blame] | 63 | [prometheus] |
| 64 | host: "prometheus" #hostname or IP |
| 65 | port: 9090 |
| 66 | |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 67 | loglevel: "DEBUG" |
| 68 | #logfile: /var/log/osm/nbi-database.log |
| 69 | |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 70 | [storage] |
| 71 | driver: "local" # local filesystem |
| 72 | # for local provide file path |
| 73 | path: "/app/storage" #"/home/atierno/OSM/osm/NBI/local/storage" |
| 74 | |
| 75 | loglevel: "DEBUG" |
| 76 | #logfile: /var/log/osm/nbi-storage.log |
| 77 | |
| 78 | [message] |
| 79 | driver: "kafka" # local or kafka |
| 80 | # for local provide file path |
| 81 | path: "/app/storage/kafka" |
| 82 | host: "kafka" |
| 83 | port: 9092 |
| 84 | |
| 85 | loglevel: "DEBUG" |
| 86 | #logfile: /var/log/osm/nbi-message.log |
| Eduardo Sousa | 705ba38 | 2018-12-19 13:34:48 +0000 | [diff] [blame] | 87 | group_id: "nbi-server" |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 88 | |
| Eduardo Sousa | 819d34c | 2018-07-31 01:20:02 +0100 | [diff] [blame] | 89 | [authentication] |
| K Sai Kiran | 7ddb073 | 2020-10-30 11:14:44 +0530 | [diff] [blame] | 90 | backend: "keystone" # internal or keystone or tacacs |
| tierno | 6486f74 | 2020-02-13 16:30:14 +0000 | [diff] [blame] | 91 | # for keystone backend a comma separated list of user adn project _domain_name list can ba provided. |
| 92 | # NBI will try authenticate with all of then if domain is not provided in the content of a POST token |
| 93 | # user_domain_name: "default,ldap" |
| 94 | # project_domain_name: "default,ldap" |
| 95 | |
| K Sai Kiran | 990ac46 | 2020-05-20 12:25:12 +0530 | [diff] [blame] | 96 | # Keystone config parameters are |
| 97 | # auth_url: format https://<ip>:<port>/v3 # v3 is necessary |
| 98 | # auth_host: ip address of keystone host. |
| 99 | # auth_port: port number of keystone. |
| 100 | # Provide either auth_url or (auth_host and auth_port) |
| 101 | # service_username: "nbi" |
| 102 | # service_password: "nbi" |
| 103 | |
| tierno | e1eb3b2 | 2019-08-26 15:59:24 +0000 | [diff] [blame] | 104 | # Only for test. It works without authorization using the provided user and project: |
| 105 | # user_not_authorized: "admin" |
| 106 | # project_not_authorized: "admin" |
| Eduardo Sousa | 29933fc | 2018-11-14 06:36:35 +0000 | [diff] [blame] | 107 | |
| K Sai Kiran | 7ddb073 | 2020-10-30 11:14:44 +0530 | [diff] [blame] | 108 | # TACACS configuration |
| 109 | # tacacs_host: "" |
| 110 | # tacacs_secret: "" |
| 111 | # tacacs_port: 49 # Default value |
| 112 | # tacacs_timeout: 10 # Default value |
| 113 | |
| garciadeblas | 6d83f8f | 2023-06-19 22:34:49 +0200 | [diff] [blame] | 114 | # User Management configuration |
| 115 | user_management: True |
| 116 | pwd_expire_days: 30 # Password expiry Default value |
| 117 | max_pwd_attempt: 5 |
| 118 | account_expire_days: 90 # Account expiry Default value |
| selvi.j | a9a1fc8 | 2022-04-04 06:54:30 +0000 | [diff] [blame] | 119 | |
| elumalai | 7802ff8 | 2023-04-24 20:38:32 +0530 | [diff] [blame] | 120 | # CEF Configuration |
| 121 | version: "0" |
| 122 | deviceVendor: "OSM" |
| 123 | deviceProduct: "OSM" |
| 124 | |
| escaleira | 9e39382 | 2025-04-03 18:53:24 +0100 | [diff] [blame] | 125 | # Password hashing configurations |
| 126 | password_rounds: 12 |
| 127 | |
| jegan | be1a3df | 2024-06-04 12:05:19 +0000 | [diff] [blame] | 128 | # SMTP Configuration |
| 129 | # smtp_server: "" |
| 130 | # smtp_port: |
| 131 | # sender_email: "" |
| 132 | # otp_retry_count: 3 #Default value |
| 133 | # otp_expiry_time: 300 #Default value |
| 134 | email_template = "/app/osm_nbi/templates/email_template.html" |
| 135 | |
| Eduardo Sousa | 29933fc | 2018-11-14 06:36:35 +0000 | [diff] [blame] | 136 | [rbac] |
| tierno | 701018c | 2019-06-25 11:13:14 +0000 | [diff] [blame] | 137 | # roles_to_operations: "roles_to_operations.yml" # initial role generation when database |