monitoring02: add loki CNAME and Caddy reverse proxy
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-17 19:48:06 +01:00
parent 74e7c9faa4
commit 2903873d52
2 changed files with 6 additions and 1 deletions

View File

@@ -18,7 +18,7 @@
role = "monitoring"; role = "monitoring";
}; };
homelab.dns.cnames = [ "grafana-test" "metrics" "vmalert" ]; homelab.dns.cnames = [ "grafana-test" "metrics" "vmalert" "loki" ];
# Enable Vault integration # Enable Vault integration
vault.enable = true; vault.enable = true;

View File

@@ -1,5 +1,10 @@
{ ... }: { ... }:
{ {
# Caddy reverse proxy for Loki
services.caddy.virtualHosts."loki.home.2rjus.net".extraConfig = ''
reverse_proxy http://127.0.0.1:3100
'';
services.loki = { services.loki = {
enable = true; enable = true;
configuration = { configuration = {