From e87b976dfb2667a8f4bc55a596a35eda65979014 Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 12 Feb 2025 22:37:37 +0100 Subject: Move tailnet internal sites to their own rnrd.fyi subdomains Signed-off-by: Mel --- services/monitoring/default.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'services/monitoring') diff --git a/services/monitoring/default.nix b/services/monitoring/default.nix index 09bda40..419c977 100644 --- a/services/monitoring/default.nix +++ b/services/monitoring/default.nix @@ -75,14 +75,11 @@ in }; }; - services.nginx.virtualHosts.tailnet.locations = { - "/grafana" = { - return = "301 $scheme://$host$request_uri/"; - }; - - "/grafana/" = { - proxyPass = "http://127.0.0.1:${toString grafanaLocalPort}/grafana/"; - recommendedProxySettings = true; + services.nginx.virtualHosts."grafana.rnrd.fyi" = { + useACMEHost = "rnrd.fyi"; + forceSSL = true; + locations."/" = { + proxyPass = "http://127.0.0.1:${toString grafanaLocalPort}/"; proxyWebsockets = true; }; }; -- cgit 1.4.1