Hass.io + Configurator + NGINX + Let's Encrypt = Problem

i am getting this when i open xxxx.duckdns.org/grafana

If you’re seeing this Grafana has failed to load its application files

  1. This could be caused by your reverse proxy settings.

  2. If you host grafana under subpath make sure your grafana.ini root_url setting includes subpath

  3. If you have a local dev build make sure you build frontend using: npm run dev, npm run watch, or npm run build

  4. Sometimes restarting grafana-server can help

Hi Kirpat

In case you are still looking for a solution. There is a new option in the latest Grafana that works better.

Add these options:

    {
      "name": "GF_SERVER_DOMAIN",
      "value": "xxxx.duckdns.org"
    },
    {
      "name": "GF_SERVER_ROOT_URL",
      "value": "%(protocol)s://%(domain)s/grafana/"
    },
    {
      "name": "GF_SERVER_SERVE_FROM_SUB_PATH",
      "value": "true"
    }

the configuration for nginx is then very simple you can find it in the documentation here

1 Like

Thanks, that really worked,

Hi,

here grafana do not work via reverse proxy from outside my lan. I only get:

If you’re seeing this Grafana has failed to load its application files

  1. This could be caused by your reverse proxy settings.

  2. If you host grafana under subpath make sure your grafana.ini root_url setting includes subpath

  3. If you have a local dev build make sure you build frontend using: yarn start, yarn start:hot, or yarn build

  4. Sometimes restarting grafana-server can help

… and nothing helps. Any hint for me?

Steffen