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:

  1. Change grafana.ini as mentioned above.
  2. Copy the certificate files (pem, crt and key) to /etc/grafana.
  3. Change the file permissions of the certificate files to 644 (go+r) and the owner to root: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

Tags:

Grafana