From d9ada0f8709cf16e6ca04d93ce7d3529c4576039 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Sat, 24 Feb 2024 08:40:01 +0100 Subject: [PATCH] Fix grafana base url The auto generated one included the internal port at the end, which doesn't work in my usecase (I have grafana behind a reverse proxy) --- hosts/nixos/lapetus/services/grafana.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/nixos/lapetus/services/grafana.nix b/hosts/nixos/lapetus/services/grafana.nix index 527d1d0..0b33f9e 100644 --- a/hosts/nixos/lapetus/services/grafana.nix +++ b/hosts/nixos/lapetus/services/grafana.nix @@ -20,8 +20,11 @@ in enable = true; settings = { - server.domain = "grafana.moonythm.dev"; - server.http_port = 8409; + server = rec { + domain = "grafana.moonythm.dev"; + root_url = "https://${domain}"; + http_port = 8409; + }; # {{{ Smtp smtp = rec {