1
0
Fork 0

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:
Alejandro Bednarik 2017-11-17 12:52:06 -03:00 committed by GitHub
commit 1edab47392
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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