| tierno | 1d213f4 | 2020-04-24 14:02:51 +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 | |
| 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 | # use env OSMRO_STATIC_ON, OSMRO_STATIC_DIR to override |
| 31 | tools.staticdir.on: True |
| 32 | tools.staticdir.dir: "/app/RO/RO-NG/osm_ng_ro/html_public" |
| 33 | |
| 34 | |
| 35 | [global] |
| 36 | # use env OSMRO_SERVER_XXX, OSMRO_LOG_XXX, OSMRO_TEST_XXX or OSMRO_AUTH_XXX to override. Use value in yaml format |
| 37 | server.socket_host: "0.0.0.0" |
| tierno | 70eeb18 | 2020-10-19 16:38:00 +0000 | [diff] [blame] | 38 | server.socket_port: 9090 |
| tierno | 1d213f4 | 2020-04-24 14:02:51 +0000 | [diff] [blame] | 39 | |
| 40 | # server.ssl_module: "builtin" |
| 41 | # server.ssl_certificate: "./http/cert.pem" |
| 42 | # server.ssl_private_key: "./http/privkey.pem" |
| 43 | # server.ssl_pass_phrase: "osm4u" |
| 44 | server.thread_pool: 10 |
| tierno | 70eeb18 | 2020-10-19 16:38:00 +0000 | [diff] [blame] | 45 | server.ns_threads: 10 |
| tierno | 1d213f4 | 2020-04-24 14:02:51 +0000 | [diff] [blame] | 46 | |
| 47 | # Uncomment for allow basic authentication apart from bearer |
| 48 | # auth.allow_basic_authentication: True |
| 49 | |
| 50 | # comment or set to False to disable /test URL |
| 51 | server.enable_test: True |
| 52 | |
| 53 | log.screen: False |
| 54 | log.access_file: "" |
| 55 | log.error_file: "" |
| 56 | |
| 57 | log.level: "DEBUG" |
| 58 | #log.file: /var/log/osm/ro.log |
| 59 | |
| tierno | f1b640f | 2020-12-09 15:06:01 +0000 | [diff] [blame] | 60 | # time a ro_task at database remain locked, before expiring it must be re-locked with a write at database |
| sousaedu | 1953edc | 2021-07-15 11:48:14 +0200 | [diff] [blame] | 61 | task_locked_time: 300 |
| 62 | task_max_locked_time: 1200 # lock is renewed until this maximum time |
| 63 | task_relock_time: 15 # 30s before expiring lock time, it is re-locked again |
| tierno | f1b640f | 2020-12-09 15:06:01 +0000 | [diff] [blame] | 64 | |
| aticig | 1ac189e | 2022-06-30 19:29:04 +0300 | [diff] [blame] | 65 | [period] |
| 66 | # use env for OSMRO_PERIOD_XXX |
| 67 | refresh_active: 60 # default 1 min |
| 68 | refresh_build: 15 # default 15 seconds |
| 69 | refresh_image: 3600 * 10 |
| 70 | refresh_error: 600 |
| 71 | queue_size: 100 |
| tierno | 1d213f4 | 2020-04-24 14:02:51 +0000 | [diff] [blame] | 72 | |
| 73 | [database] |
| 74 | # use env OSMRO_DATABASE_XXX to override |
| 75 | driver: "mongo" # mongo or memory |
| 76 | uri: "mongodb://mongo:27017" |
| 77 | name: "osm" |
| 78 | # user: "user" |
| 79 | # password: "password" |
| 80 | # commonkey: "commonkey" |
| 81 | |
| 82 | [storage] |
| 83 | # use env OSMRO_STORAGE_XXX to override |
| tierno | 70eeb18 | 2020-10-19 16:38:00 +0000 | [diff] [blame] | 84 | driver: None # "local" # local filesystem |
| tierno | 1d213f4 | 2020-04-24 14:02:51 +0000 | [diff] [blame] | 85 | # for local provide file path |
| 86 | path: "/app/storage" #"/home/atierno/OSM/osm/NBI/local/storage" |
| 87 | |
| 88 | loglevel: "DEBUG" |
| 89 | #logfile: /var/log/osm/ro-storage.log |
| 90 | |
| 91 | [message] |
| 92 | # use env OSMRO_MESSAGE_XXX to override |
| 93 | driver: "kafka" # local or kafka |
| 94 | # for local provide file path |
| 95 | path: "/app/storage/kafka" |
| 96 | host: "kafka" |
| 97 | port: 9092 |
| 98 | |
| 99 | loglevel: "DEBUG" |
| 100 | #logfile: /var/log/osm/ro-message.log |
| 101 | group_id: "ro-server" |
| 102 | |
| 103 | [authentication] |
| 104 | # use env OSMRO_AUTHENTICATION_XXX to override |
| 105 | |