grafana switch from http to https
The above configuration may have a problem: after changing the grafana.ini
file the "grafana-server" service will not start again.
Here's how I solved my problem:
- Change
grafana.ini
as mentioned above. - Copy the certificate files (pem, crt and key) to
/etc/grafana
. - Change the file permissions of the certificate files to 644 (
go+r
) and the owner toroot:root
.
After that the grafana service will work properly in HTTPS mode.
Suggest give certificate and key files the same permission as other files under /etc/grafana. chgrp grafana ; chmod 640