Allow to not configure default parameters
This commit is contained in:
parent
db864c59fa
commit
40f33c777a
1 changed files with 12 additions and 0 deletions
|
@ -20,7 +20,11 @@ logs = {{ server.path.logs }}
|
|||
#################################### Server ####################################
|
||||
[server]
|
||||
# Protocol (http or https)
|
||||
{%- if 'protocol' in server %}
|
||||
protocol = {{ server.protocol }}
|
||||
{%- else %}
|
||||
;protocol = http
|
||||
{% endif %}
|
||||
|
||||
# The ip address to bind to, empty will bind to all interfaces
|
||||
http_addr = {{ server.bind.address }}
|
||||
|
@ -29,14 +33,22 @@ http_addr = {{ server.bind.address }}
|
|||
http_port = {{ server.bind.port }}
|
||||
|
||||
# The public facing domain name used to access grafana from a browser
|
||||
{%- if 'domain' in server %}
|
||||
domain = {{ server.domain }}
|
||||
{%- else %}
|
||||
;domain = localhost
|
||||
{%- endif %}
|
||||
|
||||
# Redirect to correct domain if host header does not match domain
|
||||
# Prevents DNS rebinding attacks
|
||||
;enforce_domain = false
|
||||
|
||||
# The full public facing url
|
||||
{%- if 'root_url' in server %}
|
||||
root_url = {{ server.root_url }}
|
||||
{%- else %}
|
||||
;root_url = %(protocol)s://%(domain)s:%(http_port)s/
|
||||
{%- endif %}
|
||||
|
||||
# Log web requests
|
||||
;router_logging = false
|
||||
|
|
Loading…
Reference in a new issue