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 ##
|
||||
|
||||
# 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 ##
|
||||
|
|
|
|||
|
|
@ -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" {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue