diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2021-03-08 22:09:17 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2021-03-08 22:09:17 -0500 |
commit | 5a6366feec68047e4974f6fef04b7ccb389bfca6 (patch) | |
tree | edfa2b13fe22b656e94690394f1025c614174c83 /modules/monitoring.nix | |
parent | 3c587904eb30b98ad4a51a331b4c8f7ef37c148a (diff) |
add grafana.orbekk.com
Diffstat (limited to 'modules/monitoring.nix')
-rw-r--r-- | modules/monitoring.nix | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/modules/monitoring.nix b/modules/monitoring.nix index 72adaa9..6ef34e7 100644 --- a/modules/monitoring.nix +++ b/modules/monitoring.nix @@ -1,11 +1,11 @@ { config, lib, pkgs, ... }: let - cfg = config.orbekk.monitoring; + cfg = config.orbekk.monitoring-server; aliases = import ../data/aliases.nix; in { options = { - orbekk.monitoring = { + orbekk.monitoring-server = { enable = lib.mkEnableOption "Enable monitoring server"; grafana-port = lib.mkOption { type = lib.types.int; @@ -13,7 +13,7 @@ in }; grafana-domain = lib.mkOption { type = lib.types.str; - default = "stats.orbekk.com"; + default = "grafana.orbekk.com"; }; prometheus-port = lib.mkOption { type = lib.types.int; @@ -70,5 +70,14 @@ in }; }; }; + + # services.nginx.virtualHosts.${cfg.grafana-domain} = { + # locations."/" = { + # enableACME = true; + # forceSSL = true; + # proxyPass = "http://127.0.0.1:${toString cfg.grafana-port}"; + # proxyWebsockets = true; + # }; + # }; }; } |