Expose Grafana on port 3005 and add Traefik route with Anubis auth
This commit is contained in:
parent
35e5b04ad8
commit
058fc0b667
2 changed files with 18 additions and 1 deletions
|
|
@ -61,7 +61,6 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
server = {
|
server = {
|
||||||
http_addr = "127.0.0.1";
|
|
||||||
http_port = 3005;
|
http_port = 3005;
|
||||||
enforce_domain = true;
|
enforce_domain = true;
|
||||||
enable_gzip = true;
|
enable_gzip = true;
|
||||||
|
|
@ -106,5 +105,8 @@ in {
|
||||||
|
|
||||||
# Enable Tailscale for remote access to Traefik dashboard and configuration
|
# Enable Tailscale for remote access to Traefik dashboard and configuration
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [3005];
|
||||||
|
networking.firewall.allowedUDPPorts = [3005];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -212,6 +212,15 @@ in {
|
||||||
tls = {};
|
tls = {};
|
||||||
middlewares = ["anubisForwardAuth"];
|
middlewares = ["anubisForwardAuth"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Protected service: Grafana
|
||||||
|
grafana = {
|
||||||
|
rule = "Host(`grafana.prg-radio.org`)";
|
||||||
|
service = "grafana";
|
||||||
|
entryPoints = ["websecure"];
|
||||||
|
tls = {};
|
||||||
|
middlewares = ["anubisForwardAuth"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
http.services = {
|
http.services = {
|
||||||
|
|
@ -243,6 +252,12 @@ in {
|
||||||
{url = "http://10.1.1.249:8087";}
|
{url = "http://10.1.1.249:8087";}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
grafana.loadBalancer = {
|
||||||
|
servers = [
|
||||||
|
{url = "http://10.1.1.10:3005";}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# TCP routing for TeamSpeak
|
# TCP routing for TeamSpeak
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue