From 426a5f658e86b3f4f7933fa4705ff341065bc685 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Thu, 17 Aug 2023 10:13:57 +0200 Subject: [PATCH] Add this and variable for external FQDN --- master/hosts.conf | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/master/hosts.conf b/master/hosts.conf index 0fda99a..8037d8f 100644 --- a/master/hosts.conf +++ b/master/hosts.conf @@ -9,6 +9,7 @@ object Host "beholder" { vars.external_address = "49.13.65.97" vars.external_address6 = "2a01:4f8:c17:7495::1" + vars.external_fqdn = "beholder.cacert.org" vars.disks["/"] = { disk_partitions = "/" @@ -19,16 +20,16 @@ object Host "beholder" { vars.http_vhosts["http redirect v4"] = { http_uri = "/" - http_address = vars.external_address - http_vhost = "beholder.cacert.org" - http_headerstring = "Location: https://beholder.cacert.org/" + http_address = this.vars.external_address + http_vhost = this.vars.external_fqdn + http_headerstring = "Location: https://" + this.vars.external_fqdn + "/" http_ipv4 = true } vars.http_vhosts["http redirect v6"] = { http_uri = "/" - http_address = vars.external_address6 - http_vhost = "beholder.cacert.org" - http_headerstring = "Location: https://beholder.cacert.org/" + http_address = this.vars.external_address6 + http_vhost = this.vars.external_fqdn + http_headerstring = "Location: https://" + this.vars.external_fqdn + "/" http_ipv6 = true } }