From eb1267e54b3ff75c73ddb9c4f67041d21bf82caa Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Fri, 14 Feb 2025 23:56:03 -0500 Subject: atlas: host grafana + vm --- systems/atlas/grafana.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 systems/atlas/grafana.nix (limited to 'systems/atlas/grafana.nix') diff --git a/systems/atlas/grafana.nix b/systems/atlas/grafana.nix new file mode 100644 index 0000000..c6a84ab --- /dev/null +++ b/systems/atlas/grafana.nix @@ -0,0 +1,18 @@ +{ config, ... }: + +{ + services = { + grafana = { + enable = true; + }; + + nginx.virtualHosts = { + "grafana.getchoo.com" = { + locations."/" = { + proxyPass = "http://${config.services.grafana.settings.server.http_addr}:${toString config.services.grafana.settings.server.http_port}"; + proxyWebsockets = true; + }; + }; + }; + }; +} -- cgit v1.2.3