aboutsummaryrefslogtreecommitdiff
path: root/modules/grafana/default.nix
diff options
context:
space:
mode:
authoraethrvmn <me@aethrvmn.gr>2025-11-30 21:59:43 +0000
committeraethrvmn <me@aethrvmn.gr>2025-11-30 21:59:43 +0000
commit893ea11e1dc05fe1a2a34e66d4ebcfdffda34720 (patch)
treeef454e299f49cbb58e1b9fbafd0b759b4379ac2a /modules/grafana/default.nix
parentadded .lock to ignorelist (diff)
huge restructure of modules
Diffstat (limited to 'modules/grafana/default.nix')
-rw-r--r--modules/grafana/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/grafana/default.nix b/modules/grafana/default.nix
new file mode 100644
index 0000000..41905cd
--- /dev/null
+++ b/modules/grafana/default.nix
@@ -0,0 +1,23 @@
+{ config, pkgs, ... }:
+{
+ services = {
+ grafana = {
+ enable = true;
+ settings.server = {
+ domain = "monitor.internal";
+ http_port = 3050;
+ http_addr = "127.0.0.1";
+ };
+ };
+
+ nginx = {
+ virtualHosts."monitor.internal" = {
+ locations."/" = {
+ proxyPass = "http://127.0.0.1:3050";
+ proxyWebsockets = true;
+ };
+ };
+ };
+ };
+}
+
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.