Skip to content

Commit

Permalink
Allow to not configure default parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin DUPUIS committed Jun 20, 2019
1 parent db864c5 commit 40f33c7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions grafana/files/grafana.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit 40f33c7

Please sign in to comment.