3
我已成功在我的服務器上運行grafana實例。它在http
上運行,沒有問題。現在我想從http
切換到https
。我grafana.ini
是波紋管顯示:grafana從http切換到https
#################################### 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
@AussieDan悲傷的日誌顯示什麼。 – IIIIIIIIIIIIIIIIIIIIII
如在,它是完全空的?我沒有看到你的配置有任何問題,只要證書文件的路徑是有效的,並且用戶grafana-server運行時可以讀取它,它應該可以工作。 – AussieDan