refactor: abstract traefik router labels and dynamic config
This commit is contained in:
parent
d742671460
commit
95e67dd151
9 changed files with 152 additions and 74 deletions
|
|
@ -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"; }];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue