Merge pull request #6 from Perceptyx/domain_url_to_pillars
Add option to configure domain and root_url in grafana config
This commit is contained in:
commit
1edab47392
2 changed files with 5 additions and 2 deletions
grafana
|
@ -29,14 +29,14 @@ 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
|
||||||
;domain = localhost
|
domain = {{ server.server.domain }}
|
||||||
|
|
||||||
# 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
|
||||||
;root_url = %(protocol)s://%(domain)s:%(http_port)s/
|
root_url = {{ server.server.root_url }}
|
||||||
|
|
||||||
# Log web requests
|
# Log web requests
|
||||||
;router_logging = false
|
;router_logging = false
|
||||||
|
|
|
@ -11,6 +11,9 @@ Debian:
|
||||||
data: /var/lib/grafana
|
data: /var/lib/grafana
|
||||||
logs: /var/log/grafana
|
logs: /var/log/grafana
|
||||||
pid_file_dir: /var/run/grafana
|
pid_file_dir: /var/run/grafana
|
||||||
|
server:
|
||||||
|
domain: localhost
|
||||||
|
root_url: "%(protocol)s://%(domain)s:%(http_port)s/"
|
||||||
bind:
|
bind:
|
||||||
address: 0.0.0.0
|
address: 0.0.0.0
|
||||||
port: 3000
|
port: 3000
|
||||||
|
|
Loading…
Add table
Reference in a new issue