refactor: abstract traefik router labels and dynamic config

This commit is contained in:
Tibo De Peuter 2026-07-17 23:29:17 +02:00
parent d742671460
commit 95e67dd151
Signed by: tdpeuter
SSH key fingerprint: SHA256:u/h/LVoqKF1Iz02uOyxe6hcjmoZASCGV2HM0TG9ZMoU
9 changed files with 152 additions and 74 deletions

View file

@ -136,7 +136,7 @@
};
# 6. Traefik Reverse Proxy for Grafana and NTFY
services.traefik.dynamicConfigOptions.http = {
homelab.apps.traefik.dynamicConfigOptions.http = {
routers = {
grafana = {
rule = "Host(`grafana.lab.depeuter.dev`)";
@ -148,8 +148,8 @@
};
};
services = {
grafana.loadBalancer.servers = [{ url = "http://127.0.0.1:3000"; }];
ntfy.loadBalancer.servers = [{ url = "http://127.0.0.1:2586"; }];
grafana.loadBalancer.servers = [{ url = "http://host.docker.internal:3000"; }];
ntfy.loadBalancer.servers = [{ url = "http://host.docker.internal:2586"; }];
};
};