【发布时间】:2017-02-18 18:53:57
【问题描述】:
我已经在我的服务器上成功运行了一个 grafana 实例。它在http 上运行没有问题。现在我想从http 切换到https。我的grafana.ini 如下所示:
#################################### Server ####################################
[server]
# Protocol (http or https)
protocol = https
# The ip address to bind to, empty will bind to all interfaces
http_addr = 0.0.0.0
# The http port to use
http_port = 3000
# The public facing domain name used to access grafana from a browser
;domain = localhost
# 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/
# Log web requests
;router_logging = false
# the path relative working path
;static_root_path = public
# enable gzip
;enable_gzip = false
# https certs & key file
cert_file = /usr/local/ssl/crt/certificate.cer
cert_key = /usr/local/ssl/private/private_key.key
【问题讨论】:
-
你检查过grafana日志输出了吗?
-
@AussieDan 遗憾的是日志什么也没显示。
-
如同,它完全是空的?我没有看到您的配置有任何问题,只要证书文件的路径有效并且用户 grafana-server 以可以读取的方式运行,它应该可以工作。
-
@AussieDan 不,它们不是空的,但没有任何东西可以反映我的问题。嗯,我会检查的
-
@BitcoinMurderousManiac 是的,我让它工作了。抱歉,我忘记将问题标记为已解决 -> 已修复
标签: grafana