create nginx magic module

This commit is contained in:
Vivian 2023-05-05 10:04:38 +02:00
parent 1894b8c5e8
commit a774b1cd2b
12 changed files with 111 additions and 64 deletions

View file

@ -5,6 +5,7 @@
{ config, pkgs, ... }:
let
vmPort = 8428;
grafanaPort = config.meta.exposes.grafana.port;
vs = config.vault-secrets.secrets;
in {
imports = [ ];
@ -78,7 +79,7 @@ in {
domain = "grafana.0x76.dev";
root_url = "https://grafana.0x76.dev";
http_addr = "0.0.0.0";
http_port = 2342;
http_port = grafanaPort;
};
security.admin_password = "$__file{${vs.grafana}/password}";
};