diff --git a/chart/templates/nginx.yaml b/chart/templates/nginx.yaml index 4c3ac78..8e21985 100644 --- a/chart/templates/nginx.yaml +++ b/chart/templates/nginx.yaml @@ -12,7 +12,7 @@ data: stream { map $ssl_preread_server_name $selected_upstream { hostnames; - *.admin.{{ .Values.domain }} backend_admin; + *.{{ .Values.adminDomain }} backend_admin; *.{{ .Values.domain }} backend_tenant; {{- if .Values.customGateway | default false}} *.{{ .Values.customGateway.domainName }} backend_custom_gateway; diff --git a/chart/values.yaml b/chart/values.yaml index 4c3d919..5e278b4 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -1,6 +1,7 @@ extraPorts: [] -domain: uds.dev +domain: "###ZARF_VAR_DOMAIN###" +adminDomain: "###ZARF_VAR_ADMIN_DOMAIN###" coreDnsOverrides: | rewrite stop { diff --git a/zarf.yaml b/zarf.yaml index 35333b0..4f9ee2b 100644 --- a/zarf.yaml +++ b/zarf.yaml @@ -27,6 +27,13 @@ variables: description: "Optionally allow more ports through Nginx (combine with K3D_EXTRA_ARGS '-p :@server:*')" default: "[]" + - name: DOMAIN + description: "Cluster domain" + default: "uds.dev" + + - name: ADMIN_DOMAIN + description: "Domain for admin services, defaults to `admin.DOMAIN`" + components: - name: destroy-cluster required: true