mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-05-06 04:14:43 +00:00
dns config for cockpit
This commit is contained in:
parent
77f4d2abf5
commit
d8c08ab60f
2 changed files with 15 additions and 20 deletions
|
|
@ -14,22 +14,17 @@
|
||||||
|
|
||||||
## LONDON-A SERVICES ##
|
## LONDON-A SERVICES ##
|
||||||
|
|
||||||
# Grafana
|
# Cockpit
|
||||||
grafana.pez.solutions, grafana.pez.sh {
|
london-a.pez.sh {
|
||||||
forward_auth localhost:9091 {
|
forward_auth localhost:9091 {
|
||||||
uri /api/authz/forward-auth
|
uri /api/authz/forward-auth
|
||||||
copy_headers Remote-User Remote-Groups Remote-Name Remote-Email
|
copy_headers Remote-User Remote-Groups Remote-Name Remote-Email
|
||||||
}
|
}
|
||||||
reverse_proxy 100.122.219.41:3000
|
reverse_proxy 100.90.111.19:9090 {
|
||||||
}
|
transport http {
|
||||||
|
tls_insecure_skip_verify
|
||||||
# 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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
## LONDON-B SERVICES ##
|
## LONDON-B SERVICES ##
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,9 @@ locals {
|
||||||
|
|
||||||
resource "hcloud_zone_rrset" "A_helsinki_a" {
|
resource "hcloud_zone_rrset" "A_helsinki_a" {
|
||||||
for_each = toset([
|
for_each = toset([
|
||||||
"@", "apps", "auth", "bitwarden", "download", "git", "grafana", "helsinki-a",
|
"@", "apps", "auth", "bitwarden", "download", "git", "helsinki-a",
|
||||||
"jellyfin", "jellyfin-requests", "ldap", "lidarr", "music", "naveen",
|
"jellyfin", "jellyfin-requests", "ldap", "lidarr", "london-a", "music", "naveen",
|
||||||
"plex", "prometheus", "prowlarr", "radarr", "readarr", "request",
|
"plex", "prowlarr", "radarr", "readarr", "request",
|
||||||
"rss", "sonarr", "soulseek", "status",
|
"rss", "sonarr", "soulseek", "status",
|
||||||
])
|
])
|
||||||
zone = hcloud_zone.pezsh.name
|
zone = hcloud_zone.pezsh.name
|
||||||
|
|
@ -38,11 +38,11 @@ resource "hcloud_zone_rrset" "nuremberg_mail" {
|
||||||
|
|
||||||
resource "hcloud_zone_rrset" "A_copenhagen" {
|
resource "hcloud_zone_rrset" "A_copenhagen" {
|
||||||
for_each = toset(["minecraft", "wow"])
|
for_each = toset(["minecraft", "wow"])
|
||||||
zone = hcloud_zone.pezsh.name
|
zone = hcloud_zone.pezsh.name
|
||||||
name = each.value
|
name = each.value
|
||||||
type = "A"
|
type = "A"
|
||||||
ttl = 300
|
ttl = 300
|
||||||
records = [{ value = local.copenhagen }]
|
records = [{ value = local.copenhagen }]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "hcloud_zone_rrset" "CNAME_public" {
|
resource "hcloud_zone_rrset" "CNAME_public" {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue