To use Grafana Bearer tokens you need to be able to inject headers which you can’t do in the OSS version of Screenly. To get around this you can just run a NGiNX proxy on the host and reverse proxy to the Grafana server and use NGiNX to inject the required headers.

I HAVEN’T TESTED THIS YET ON SCREENLY OSE, BUT SINCE IT’S JUST RUNNING ON RAPSBERRY PI OS THERE SHOULDN’T BE AN ISSUE, I WILL BE TESTING EVENTUALLY


Install and configure NGiNX

apt update && apt install -y nginx

nano /etc/nginx/conf.d/grafana.domain.dom

server {
  listen 80;
  server_name grafana.local;

  location / {
    proxy_pass https://grafana.domain.com;
    proxy_set_header Host grafana.domain.com;
    proxy_set_header Origin https://grafana.domain.com;
    proxy_set_header                "Authorization" "Bearer LONG_TOKEN_FROM_GRAFANA_API_PAGE";
  }
}

Now we want to configure /etc/hosts to point to the grafana.local domain

echo '127.0.0.5 grafana.local' >> /etc/hosts


Now configure the screenly URL to point to http://grafana.local