| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 1 | [/] |
| 2 | # tools.secureheaders.on = True |
| 3 | tools.sessions.on = True |
| 4 | # increase security on sessions |
| 5 | tools.sessions.secure = True |
| 6 | tools.sessions.httponly = True |
| 7 | tools.encode.on: True, |
| 8 | tools.encode.encoding: 'utf-8' |
| 9 | tools.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] |
| 17 | tools.staticdir.on: True |
| 18 | tools.staticdir.dir: "/app/osm_nbi/html_public" |
| 19 | |
| 20 | |
| 21 | [global] |
| 22 | server.socket_host: "0.0.0.0" |
| 23 | server.socket_port: 9999 |
| 24 | |
| 25 | server.ssl_module: "builtin" |
| 26 | server.ssl_certificate: "./http/cert.pem" |
| 27 | server.ssl_private_key: "./http/privkey.pem" |
| 28 | server.ssl_pass_phrase: "osm4u" |
| tierno | 0f98af5 | 2018-03-19 10:28:22 +0100 | [diff] [blame] | 29 | server.thread_pool: 1 |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 30 | |
| 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 | |
| 38 | log.screen: False |
| 39 | log.access_file: "" |
| 40 | log.error_file: "" |
| 41 | |
| tierno | f5298be | 2018-05-16 14:43:57 +0200 | [diff] [blame] | 42 | log.level: "DEBUG" |
| 43 | #log.file: /var/log/osm/nbi.log |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 44 | |
| 45 | |
| 46 | [database] |
| 47 | driver: "mongo" # mongo or memory |
| 48 | host: "mongo" # hostname or IP |
| 49 | port: 27017 |
| 50 | name: "osm" |
| tierno | d985a8d | 2018-10-19 14:12:28 +0200 | [diff] [blame] | 51 | # user: "user" |
| 52 | # password: "password" |
| 53 | # materpassword: "mpasswd" |
| tierno | c94c3df | 2018-02-09 15:38:54 +0100 | [diff] [blame] | 54 | |
| 55 | loglevel: "DEBUG" |
| 56 | #logfile: /var/log/osm/nbi-database.log |
| 57 | |
| 58 | |
| 59 | [storage] |
| 60 | driver: "local" # local filesystem |
| 61 | # for local provide file path |
| 62 | path: "/app/storage" #"/home/atierno/OSM/osm/NBI/local/storage" |
| 63 | |
| 64 | loglevel: "DEBUG" |
| 65 | #logfile: /var/log/osm/nbi-storage.log |
| 66 | |
| 67 | [message] |
| 68 | driver: "kafka" # local or kafka |
| 69 | # for local provide file path |
| 70 | path: "/app/storage/kafka" |
| 71 | host: "kafka" |
| 72 | port: 9092 |
| 73 | |
| 74 | loglevel: "DEBUG" |
| 75 | #logfile: /var/log/osm/nbi-message.log |
| 76 | |
| Eduardo Sousa | 819d34c | 2018-07-31 01:20:02 +0100 | [diff] [blame] | 77 | [authentication] |
| 78 | backend: "internal" |