fix: Use proxy enable option for Prometheus and Grafana

This commit is contained in:
pazpi 2024-11-29 16:13:24 +01:00
parent 4891f0964a
commit 61f207ae81
2 changed files with 4 additions and 1 deletions

View file

@ -109,7 +109,7 @@ in
})
(lib.mkIf (cfg.proxy != { }) {
(lib.mkIf cfg.proxy.enable {
services.caddy = with cfg.proxy; {
virtualHosts."grafana.${domain}".extraConfig = ''
reverse_proxy http://${host}:3000