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
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue