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 ####################################
|
||||||
[server]
|
[server]
|
||||||
# Protocol (http or https)
|
# Protocol (http or https)
|
||||||
|
{%- if 'protocol' in server %}
|
||||||
protocol = {{ server.protocol }}
|
protocol = {{ server.protocol }}
|
||||||
|
{%- else %}
|
||||||
|
;protocol = http
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
# The ip address to bind to, empty will bind to all interfaces
|
# The ip address to bind to, empty will bind to all interfaces
|
||||||
http_addr = {{ server.bind.address }}
|
http_addr = {{ server.bind.address }}
|
||||||
|
@ -29,14 +33,22 @@ http_addr = {{ server.bind.address }}
|
||||||
http_port = {{ server.bind.port }}
|
http_port = {{ server.bind.port }}
|
||||||
|
|
||||||
# The public facing domain name used to access grafana from a browser
|
# The public facing domain name used to access grafana from a browser
|
||||||
|
{%- if 'domain' in server %}
|
||||||
domain = {{ server.domain }}
|
domain = {{ server.domain }}
|
||||||
|
{%- else %}
|
||||||
|
;domain = localhost
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
# Redirect to correct domain if host header does not match domain
|
# Redirect to correct domain if host header does not match domain
|
||||||
# Prevents DNS rebinding attacks
|
# Prevents DNS rebinding attacks
|
||||||
;enforce_domain = false
|
;enforce_domain = false
|
||||||
|
|
||||||
# The full public facing url
|
# The full public facing url
|
||||||
|
{%- if 'root_url' in server %}
|
||||||
root_url = {{ server.root_url }}
|
root_url = {{ server.root_url }}
|
||||||
|
{%- else %}
|
||||||
|
;root_url = %(protocol)s://%(domain)s:%(http_port)s/
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
# Log web requests
|
# Log web requests
|
||||||
;router_logging = false
|
;router_logging = false
|
||||||
|
|
Loading…
Reference in a new issue