Hi,
I am trying to set nginx reverse proxy for grafana. I have nginx server block for grafana on a different HTTPS port. Normal HTTP port only shows the welcome nginx html file, but when I access HTTPS, redirect happens to grafana sub path “grafana” but I am presented with a black background and red letters “If you’re seeing this Grafana has failed to load its application files”
When I access grafana locally, everything works fine HTTP.
This is what I have for NGINX config on HTTPS:
location /grafana/ { proxy_pass http://grafana:3000/; }
/etc/hosts
internal-ip grafana
/etc/grafana/grafana.ini
domain = sub-path.my-public-domain
enforce_domain = false
root_url = %(protocol)s://%(domain)s:%(http_port)s/grafana/
serve_from_sub_path = true
I believe my problem is because i am accessing https://sub-path.my-public-domain/grafana , but the proxy is set to NO SSL http://grafana:3000/ , can this be causing this proxy issue still even though I believe I have set the correct settings in grafana.ini?
Not sure what else to try, the main goal is to run all in SSL, either locally ssl or production ssl. Let’s Encrypt is not working right now with grafana (permission denied even with chmod 777 for testing!), NGINX loads Let’s Encrypt certs and keys just fine.
Cheers