feat(coder): enable wildcard forwarding

This commit is contained in:
Peter 2023-06-13 22:13:33 +02:00
parent 1099646f24
commit e8b3a42810
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9
2 changed files with 7 additions and 3 deletions

View file

@ -17,8 +17,8 @@ resource "hcloud_load_balancer_target" "k8s_lb_target" {
use_private_ip = true
}
resource "hcloud_managed_certificate" "icb4dc0de_20230417_001" {
name = "icb4dc0de_20230417_001"
resource "hcloud_managed_certificate" "icb4dc0de_20230613_001" {
name = "icb4dc0de_20230613_001"
domain_names = [
"icb4dc0.de",
"*.icb4dc0.de",
@ -26,6 +26,7 @@ resource "hcloud_managed_certificate" "icb4dc0de_20230417_001" {
"*.buildr.icb4dc0.de",
"*.prskr.icb4dc0.de",
"*.fider.icb4dc0.de",
"*.ide.icb4dc0.de",
]
labels = {
}
@ -57,7 +58,7 @@ resource "hcloud_load_balancer_service" "k8s_lb_svc_https" {
http {
redirect_http = true
certificates = [
hcloud_managed_certificate.icb4dc0de_20230417_001.id
hcloud_managed_certificate.icb4dc0de_20230613_001.id
]
}
}

View file

@ -3,7 +3,10 @@ coder:
ingress:
enable: true
host: ide.icb4dc0.de
wildcardHost: "*.ide.icb4dc0.de"
env:
- name: CODER_WILDCARD_ACCESS_URL
value: '*.ide.icb4dc0.de'
- name: CODER_ACCESS_URL
value: "https://ide.icb4dc0.de"
- name: CODER_PG_CONNECTION_URL