I need to enable HTTPS on my Grafana Windows Server. I notice error appears after grafana-server.exe
"e[31mERORe[0m[10-26|15:33:15] Stopped HTTPServer
e[31mloggere[0m=server e[31mreasone[0m=“cert_file cannot be empty when using HTTPS”
#################################### Server ####################################
[server]
Protocol (http, https, h2, socket)
protocol = https
The ip address to bind to, empty will bind to all interfaces
;http_addr =
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 you use in browser, used for redirects and emails
If you use reverse proxy and sub path specify full url (with sub path)
;root_url = %(protocol)s://%(domain)s:%(http_port)s/
Serve Grafana from subpath specified in root_url
setting. By default it is set to false
for compatibility reasons.
;serve_from_sub_path = false
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 =
;cert_key =
Unix socket path
;socket =