summaryrefslogtreecommitdiff
path: root/systems/atlas/grafana.nix
diff options
context:
space:
mode:
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;
+ };
+ };
+ };
+ };
+}