File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,11 @@ logs = {{ server.path.logs }}
2020# ################################### Server ####################################
2121[server]
2222# Protocol (http or https)
23+ {%- if ' protocol' in server %}
2324protocol = {{ server.protocol }}
25+ {%- else %}
26+ ; protocol = http
27+ {% endif %}
2428
2529# The ip address to bind to, empty will bind to all interfaces
2630http_addr = {{ server.bind.address }}
@@ -29,14 +33,22 @@ http_addr = {{ server.bind.address }}
2933http_port = {{ server.bind.port }}
3034
3135# The public facing domain name used to access grafana from a browser
36+ {%- if ' domain' in server %}
3237domain = {{ server.domain }}
38+ {%- else %}
39+ ; domain = localhost
40+ {%- endif %}
3341
3442# Redirect to correct domain if host header does not match domain
3543# Prevents DNS rebinding attacks
3644; enforce_domain = false
3745
3846# The full public facing url
47+ {%- if ' root_url' in server %}
3948root_url = {{ server.root_url }}
49+ {%- else %}
50+ ; root_url = %(protocol)s://%(domain)s:%(http_port)s/
51+ {%- endif %}
4052
4153# Log web requests
4254; router_logging = false
You can’t perform that action at this time.
0 commit comments