From 677fe3a7f0299d6dd1c395c2550f61756ea1d09a Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Thu, 2 Jan 2025 14:16:25 +0100 Subject: [PATCH] homeassistan: Upgrade grafana path --- roles/homeassistant/templates/grafana.ini.j2 | 10 +++++----- roles/homeassistant/templates/vhost.j2 | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/homeassistant/templates/grafana.ini.j2 b/roles/homeassistant/templates/grafana.ini.j2 index 9ab8426..1e78c47 100644 --- a/roles/homeassistant/templates/grafana.ini.j2 +++ b/roles/homeassistant/templates/grafana.ini.j2 @@ -48,7 +48,7 @@ # The full public facing url you use in browser, used for redirects and emails # If you use reverse proxy and sub path specify full url (with sub path) -root_url = %(protocol)s://%(domain)s:%(http_port)s/grafana/ +root_url = %(protocol)s://%(domain)s:%(http_port)s/api/ingress/grafana/ # Serve Grafana from subpath specified in `root_url` setting. By default it is set to `false` for compatibility reasons. serve_from_sub_path = true @@ -517,10 +517,10 @@ enabled = true #################################### Auth Proxy ########################## [auth.proxy] -;enabled = false -;header_name = X-WEBAUTH-USER -;header_property = username -;auto_sign_up = true +enabled = true +header_name = X-WEBAUTH-USER +header_property = username +auto_sign_up = true ;sync_ttl = 60 ;whitelist = 192.168.1.1, 192.168.2.1 ;headers = Email:X-User-Email, Name:X-User-Name diff --git a/roles/homeassistant/templates/vhost.j2 b/roles/homeassistant/templates/vhost.j2 index ba005bb..c7a7497 100644 --- a/roles/homeassistant/templates/vhost.j2 +++ b/roles/homeassistant/templates/vhost.j2 @@ -25,7 +25,7 @@ server { proxy_set_header Connection "upgrade"; } - location /grafana { + location /api/ingress/grafana/ { client_max_body_size 1024M; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $http_host;