88 lines
2.0 KiB
Django/Jinja
88 lines
2.0 KiB
Django/Jinja
; {{ ansible_managed }}
|
|
; Database configuration
|
|
[databases]
|
|
default['host'] = '{{ mti_default_host }}'
|
|
default['port'] = 3306
|
|
default['username'] = '{{ mti_default_username }}'
|
|
default['password'] = '{{ mti_default_password }}'
|
|
mtinfo['name'] = '{{ mti_mtinfo_name }}'
|
|
logging['name'] = '{{ mti_logging_name }}'
|
|
|
|
mtinfo_asset_manager['name'] = '{{ mtinfo_asset_manager_name }}'
|
|
mtinfo_asset_manager['username'] = '{{ mtinfo_asset_manager_username }}'
|
|
mtinfo_asset_manager['password'] = '{{ mtinfo_asset_manager_password }}'
|
|
|
|
; Locale configuration
|
|
[locale]
|
|
default = 'en_US'
|
|
defaultPreferBrowserLocale = TRUE
|
|
useUrlLocale = FALSE
|
|
supported[] = 'en_US'
|
|
supported[] = 'nl_NL'
|
|
supported[] = 'fr_FR'
|
|
|
|
; Log configuration
|
|
[logging]
|
|
logLevel = LOG_INFO
|
|
logDir = /var/log/di-web
|
|
logFile = mtisupport.log
|
|
logToFile = true
|
|
logToConsole = false
|
|
|
|
; Host configuration
|
|
[host]
|
|
domain = {{ di_mtinfo_url }}
|
|
useSSL = true
|
|
relativeUri = '/support'
|
|
|
|
[application]
|
|
company = Dual Inventive Technology Centre B.V.
|
|
|
|
[security]
|
|
csrf = True
|
|
|
|
; DI Net
|
|
[dinet]
|
|
messaging['host'] = '{{ di_web_messaging_host }}'
|
|
messaging['port'] = {{ di_web_messaging_port }}
|
|
secureserver['host'] = '{{ di_web_secureserver_host }}'
|
|
secureserver['port'] = {{ di_web_secureserver_port }}
|
|
|
|
; Redis
|
|
[redis]
|
|
device['isClustered'] = true
|
|
device['prefix'] = 'device:'
|
|
device['host'] = '{{ di_redis_uris[0].host }}'
|
|
device['port'] = {{ di_redis_uris[0].port }}
|
|
|
|
excel['isClustered'] = true
|
|
excel['prefix'] = 'excel:'
|
|
excel['host'] = '{{ di_redis_frontend.host }}'
|
|
excel['port'] = {{ di_redis_frontend.port }}
|
|
|
|
; WebSocket-server
|
|
[wss]
|
|
host = '{{ di_mtinfo_url }}/wss'
|
|
useSSL = true
|
|
|
|
; Checks
|
|
[device_checks]
|
|
battery_status = false
|
|
last_update = true
|
|
|
|
; Environment
|
|
[environment]
|
|
document_root_dir = '/var/www/mtinfo3000/uploads'
|
|
temp_dir = '/var/www/mtinfo3000/tmp'
|
|
|
|
|
|
; Email configuration
|
|
[email]
|
|
from = '{{ mtinfo_email_from }}'
|
|
emailFrom = '{{ mtinfo_email_emailfrom }}'
|
|
replyTo = '{{ mtinfo_email_replyto }}'
|
|
|
|
; Google
|
|
[google]
|
|
api_key = '{{ di_web_google_api_key }}'
|