1
0
Fork 0
mirror of synced 2024-11-16 14:15:35 -05:00

Add option to configure domain and root_url in grafana config

This commit is contained in:
abednarik 2017-11-17 12:51:33 -03:00
parent 1aab527af3
commit bf37d5fb9e
2 changed files with 5 additions and 2 deletions

View file

@ -29,14 +29,14 @@ http_addr = {{ server.bind.address }}
http_port = {{ server.bind.port }}
# The public facing domain name used to access grafana from a browser
;domain = localhost
domain = {{ server.server.domain }}
# Redirect to correct domain if host header does not match domain
# Prevents DNS rebinding attacks
;enforce_domain = false
# The full public facing url
;root_url = %(protocol)s://%(domain)s:%(http_port)s/
root_url = {{ server.server.root_url }}
# Log web requests
;router_logging = false

View file

@ -11,6 +11,9 @@ Debian:
data: /var/lib/grafana
logs: /var/log/grafana
pid_file_dir: /var/run/grafana
server:
domain: localhost
root_url: "%(protocol)s://%(domain)s:%(http_port)s/"
bind:
address: 0.0.0.0
port: 3000