'http_port': grafana_port,
'protocol': spec.protocol,
'http_addr': grafana_ip,
- 'use_url_prefix': mgmt_gw_enabled
+ 'use_url_prefix': mgmt_gw_enabled,
+ 'domain': daemon_spec.host,
})
if 'dashboard' in self.mgr.get('mgr_map')['modules'] and spec.initial_admin_password:
org_role = 'Viewer'
{% endif %}
[server]
- domain = 'bootstrap.storage.lab'
+ domain = '{{ domain }}'
protocol = {{ protocol }}
cert_file = /etc/grafana/certs/cert_file
cert_key = /etc/grafana/certs/cert_key
http_port = {{ http_port }}
http_addr = {{ http_addr }}
{% if use_url_prefix %}
- root_url = %(protocol)s://%(domain)s:%(http_port)s/grafana/
- serve_from_sub_path = true
+ root_url = %(protocol)s://%(domain)s/grafana/
{% endif %}
[snapshots]
external_enabled = false
org_name = 'Main Org.'
org_role = 'Viewer'
[server]
- domain = 'bootstrap.storage.lab'
+ domain = 'test'
protocol = https
cert_file = /etc/grafana/certs/cert_file
cert_key = /etc/grafana/certs/cert_key
" org_name = 'Main Org.'\n"
" org_role = 'Viewer'\n"
'[server]\n'
- " domain = 'bootstrap.storage.lab'\n"
+ " domain = 'test'\n"
' protocol = https\n'
' cert_file = /etc/grafana/certs/cert_file\n'
' cert_key = /etc/grafana/certs/cert_key\n'
'[users]\n'
' default_theme = light\n'
'[server]\n'
- " domain = 'bootstrap.storage.lab'\n"
+ " domain = 'test'\n"
' protocol = https\n'
' cert_file = /etc/grafana/certs/cert_file\n'
' cert_key = /etc/grafana/certs/cert_key\n'