diff options
| author | Seth Flynn <[email protected]> | 2025-02-14 23:56:03 -0500 |
|---|---|---|
| committer | Seth Flynn <[email protected]> | 2025-02-15 01:18:39 -0500 |
| commit | eb1267e54b3ff75c73ddb9c4f67041d21bf82caa (patch) | |
| tree | f61180dfbf3a255c9f3aa7138d0b788029a19487 /systems/atlas/grafana.nix | |
| parent | c651506fe6ccfe88309bf6b7050cc43ec62de0e7 (diff) | |
atlas: host grafana + vm
Diffstat (limited to 'systems/atlas/grafana.nix')
| -rw-r--r-- | systems/atlas/grafana.nix | 18 |
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; + }; + }; + }; + }; +} |
