summaryrefslogtreecommitdiff
path: root/systems/atlas/grafana.nix
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2025-02-14 23:56:03 -0500
committerSeth Flynn <[email protected]>2025-02-15 01:18:39 -0500
commiteb1267e54b3ff75c73ddb9c4f67041d21bf82caa (patch)
treef61180dfbf3a255c9f3aa7138d0b788029a19487 /systems/atlas/grafana.nix
parentc651506fe6ccfe88309bf6b7050cc43ec62de0e7 (diff)
atlas: host grafana + vm
Diffstat (limited to 'systems/atlas/grafana.nix')
-rw-r--r--systems/atlas/grafana.nix18
1 files changed, 18 insertions, 0 deletions
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;
+ };
+ };
+ };
+ };
+}