diff options
| author | Paul Buetow <paul@buetow.org> | 2024-05-01 21:08:27 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-05-01 21:08:27 +0300 |
| commit | 6e885a6d41e2de2cc271737c57117745370ae0bb (patch) | |
| tree | 8d7505e7f71be75449cd2691de9608dc98594a2f | |
| parent | 894657ceafdb72b612f5c9143f6a3b0188d54dd7 (diff) | |
introducing alt.irregular.ninja and standby.alt.irregular.ninja
| -rw-r--r-- | frontends/Rexfile | 2 | ||||
| -rw-r--r-- | frontends/etc/httpd.conf.tpl | 14 | ||||
| -rw-r--r-- | frontends/var/nsd/zones/master/irregular.ninja.zone.tpl | 8 |
3 files changed, 21 insertions, 3 deletions
diff --git a/frontends/Rexfile b/frontends/Rexfile index 4bd9381..a6e1b47 100644 --- a/frontends/Rexfile +++ b/frontends/Rexfile @@ -73,7 +73,7 @@ our $secrets = sub { read_file './secrets/' . shift }; our @dns_zones = qw/buetow.org dtail.dev foo.zone irregular.ninja snonux.foo/; our @dns_zones_remove = qw/paul.cyou/; -our @acme_hosts = qw/buetow.org git.buetow.org paul.buetow.org dory.buetow.org solarcat.buetow.org fotos.buetow.org znc.buetow.org dtail.dev foo.zone irregular.ninja snonux.foo/; +our @acme_hosts = qw/buetow.org git.buetow.org paul.buetow.org dory.buetow.org solarcat.buetow.org fotos.buetow.org znc.buetow.org dtail.dev foo.zone irregular.ninja alt.irregular.ninja snonux.foo/; # UTILITY TASKS diff --git a/frontends/etc/httpd.conf.tpl b/frontends/etc/httpd.conf.tpl index bca42d8..8a26590 100644 --- a/frontends/etc/httpd.conf.tpl +++ b/frontends/etc/httpd.conf.tpl @@ -109,6 +109,20 @@ server "<%= $prefix %>irregular.ninja" { } <% } -%> +<% for my $prefix (@prefixes) { -%> +server "<%= $prefix %>alt.irregular.ninja" { + listen on * tls port 443 + tls { + certificate "/etc/ssl/<%= $prefix %>alt.irregular.ninja.fullchain.pem" + key "/etc/ssl/private/<%= $prefix %>alt.irregular.ninja.key" + } + location * { + root "/htdocs/alt.irregular.ninja" + directory auto index + } +} +<% } -%> + # Dory special host <% for my $prefix (@prefixes) { -%> server "<%= $prefix %>dory.buetow.org" { diff --git a/frontends/var/nsd/zones/master/irregular.ninja.zone.tpl b/frontends/var/nsd/zones/master/irregular.ninja.zone.tpl index 85c0090..a37eb85 100644 --- a/frontends/var/nsd/zones/master/irregular.ninja.zone.tpl +++ b/frontends/var/nsd/zones/master/irregular.ninja.zone.tpl @@ -13,5 +13,9 @@ $TTL 4h 300 IN AAAA <%= $ips->{current_master}{ipv6} %> ; Enable failover www 300 IN A <%= $ips->{current_master}{ipv4} %> ; Enable failover www 300 IN AAAA <%= $ips->{current_master}{ipv6} %> ; Enable failover -standby 300 IN A <%= $ips->{current_standby}{ipv4} %> ; Enable failover -standby 300 IN AAAA <%= $ips->{current_standby}{ipv6} %> ; Enable failover +standby 300 IN A <%= $ips->{current_standby}{ipv4} %> ; Enable failover +standby 300 IN AAAA <%= $ips->{current_standby}{ipv6} %> ; Enable failover +alt 300 IN A <%= $ips->{current_master}{ipv4} %> ; Enable failover +alt 300 IN AAAA <%= $ips->{current_master}{ipv6} %> ; Enable failover +standby.alt 300 IN A <%= $ips->{current_standby}{ipv4} %> ; Enable failover +standby.alt 300 IN AAAA <%= $ips->{current_standby}{ipv6} %> ; Enable failover |
