Merge pull request #36 from beuss/master
server: add support for domain, protocol & root_url
This commit is contained in:
commit
72c889639c
2 changed files with 6 additions and 3 deletions
|
@ -20,7 +20,7 @@ logs = {{ server.path.logs }}
|
||||||
#################################### Server ####################################
|
#################################### Server ####################################
|
||||||
[server]
|
[server]
|
||||||
# Protocol (http or https)
|
# Protocol (http or https)
|
||||||
;protocol = http
|
protocol = {{ server.protocol }}
|
||||||
|
|
||||||
# The ip address to bind to, empty will bind to all interfaces
|
# The ip address to bind to, empty will bind to all interfaces
|
||||||
http_addr = {{ server.bind.address }}
|
http_addr = {{ server.bind.address }}
|
||||||
|
@ -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.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.root_url }}
|
||||||
|
|
||||||
# Log web requests
|
# Log web requests
|
||||||
;router_logging = false
|
;router_logging = false
|
||||||
|
|
|
@ -6,6 +6,9 @@ Debian:
|
||||||
service: grafana-server
|
service: grafana-server
|
||||||
user: grafana
|
user: grafana
|
||||||
group: grafana
|
group: grafana
|
||||||
|
protocol: http
|
||||||
|
domain: localhost
|
||||||
|
root_url: '%(protocol)s://%(domain)s:%(http_port)s/'
|
||||||
path:
|
path:
|
||||||
home: /usr/share/grafana
|
home: /usr/share/grafana
|
||||||
data: /var/lib/grafana
|
data: /var/lib/grafana
|
||||||
|
|
Loading…
Reference in a new issue