From d8c08ab60f772af9343fcc2fb14feb3724c3815d Mon Sep 17 00:00:00 2001 From: Rasmus Wejlgaard Date: Sun, 3 May 2026 13:53:57 +0100 Subject: [PATCH] dns config for cockpit --- ansible/services/caddy/Caddyfile | 19 +++++++------------ terraform/hetzner_dns.tf | 16 ++++++++-------- 2 files changed, 15 insertions(+), 20 deletions(-) diff --git a/ansible/services/caddy/Caddyfile b/ansible/services/caddy/Caddyfile index 1e4dae5..a1c7caa 100644 --- a/ansible/services/caddy/Caddyfile +++ b/ansible/services/caddy/Caddyfile @@ -14,22 +14,17 @@ ## LONDON-A SERVICES ## -# Grafana -grafana.pez.solutions, grafana.pez.sh { +# Cockpit +london-a.pez.sh { forward_auth localhost:9091 { uri /api/authz/forward-auth copy_headers Remote-User Remote-Groups Remote-Name Remote-Email } - reverse_proxy 100.122.219.41:3000 -} - -# Prometheus -prometheus.pez.solutions, prometheus.pez.sh { - forward_auth localhost:9091 { - uri /api/authz/forward-auth - copy_headers Remote-User Remote-Groups Remote-Name Remote-Email - } - reverse_proxy 100.122.219.41:9090 + reverse_proxy 100.90.111.19:9090 { + transport http { + tls_insecure_skip_verify + } + } } ## LONDON-B SERVICES ## diff --git a/terraform/hetzner_dns.tf b/terraform/hetzner_dns.tf index 24f7bb5..33969e0 100644 --- a/terraform/hetzner_dns.tf +++ b/terraform/hetzner_dns.tf @@ -12,9 +12,9 @@ locals { resource "hcloud_zone_rrset" "A_helsinki_a" { for_each = toset([ - "@", "apps", "auth", "bitwarden", "download", "git", "grafana", "helsinki-a", - "jellyfin", "jellyfin-requests", "ldap", "lidarr", "music", "naveen", - "plex", "prometheus", "prowlarr", "radarr", "readarr", "request", + "@", "apps", "auth", "bitwarden", "download", "git", "helsinki-a", + "jellyfin", "jellyfin-requests", "ldap", "lidarr", "london-a", "music", "naveen", + "plex", "prowlarr", "radarr", "readarr", "request", "rss", "sonarr", "soulseek", "status", ]) zone = hcloud_zone.pezsh.name @@ -38,11 +38,11 @@ resource "hcloud_zone_rrset" "nuremberg_mail" { resource "hcloud_zone_rrset" "A_copenhagen" { for_each = toset(["minecraft", "wow"]) - zone = hcloud_zone.pezsh.name - name = each.value - type = "A" - ttl = 300 - records = [{ value = local.copenhagen }] + zone = hcloud_zone.pezsh.name + name = each.value + type = "A" + ttl = 300 + records = [{ value = local.copenhagen }] } resource "hcloud_zone_rrset" "CNAME_public" {