diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-06 09:53:18 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-06 09:53:18 +0200 |
| commit | ce8b4f958116d166334d8b3fd8af9bc376fb573e (patch) | |
| tree | 7f69a4bcb89d2030ffc36893540b97b30aeac29c | |
| parent | 9c29ad4ceed23bff8453dd699dd70f08bea1b55e (diff) | |
add gogios.buetow.org
| -rw-r--r-- | frontends/Rexfile | 9 | ||||
| -rw-r--r-- | frontends/etc/httpd.conf.tpl | 12 | ||||
| -rw-r--r-- | frontends/var/nsd/zones/master/buetow.org.zone.tpl | 7 |
3 files changed, 27 insertions, 1 deletions
diff --git a/frontends/Rexfile b/frontends/Rexfile index 6c64fe5..bfc6a72 100644 --- a/frontends/Rexfile +++ b/frontends/Rexfile @@ -83,7 +83,7 @@ our @f3s_hosts = # push @f3s_hosts, 'registry.f3s.buetow.org'; our @acme_hosts = - qw/foo.zone dtail.dev buetow.org git.buetow.org paul.buetow.org joern.buetow.org dory.buetow.org ecat.buetow.org blog.buetow.org znc.buetow.org stats.foo.zone irregular.ninja alt.irregular.ninja snonux.foo/; + qw/foo.zone dtail.dev buetow.org git.buetow.org paul.buetow.org joern.buetow.org dory.buetow.org ecat.buetow.org blog.buetow.org znc.buetow.org stats.foo.zone irregular.ninja alt.irregular.ninja snonux.foo gogios.buetow.org/; push @acme_hosts, @f3s_hosts; # UTILITY TASKS @@ -476,6 +476,13 @@ task 'gogios', run 'adduser -group _gogios -batch _gogios', unless => 'id _gogios'; run 'usermod -d /var/run/gogios _gogios'; + # For the HTML reports + file '/var/www/htdocs/buetow.org/self/gogios', + ensure => 'directory', + owner => '_gogios', + group => '_gogios', + mode => '755'; + file '/etc/gogios.json', content => template( './etc/gogios.json.tpl', acme_hosts => \@acme_hosts ), owner => 'root', diff --git a/frontends/etc/httpd.conf.tpl b/frontends/etc/httpd.conf.tpl index 32d80e7..f450efd 100644 --- a/frontends/etc/httpd.conf.tpl +++ b/frontends/etc/httpd.conf.tpl @@ -161,6 +161,18 @@ server "<%= $prefix %>ecat.buetow.org" { } <% } -%> +# gogios special host +<% for my $prefix (@prefixes) { -%> +server "<%= $prefix %>gogios.buetow.org" { + listen on * port 8080 + log style forwarded + location * { + root "/htdocs/buetow.org/self/gogios" + directory auto index + } +} +<% } -%> + # Fallback for f3s hosts - serve fallback page for ALL paths <% for my $host (@$f3s_hosts) { for my $prefix (@prefixes) { -%> server "<%= $prefix.$host %>" { diff --git a/frontends/var/nsd/zones/master/buetow.org.zone.tpl b/frontends/var/nsd/zones/master/buetow.org.zone.tpl index 0a0fb36..5ae4c08 100644 --- a/frontends/var/nsd/zones/master/buetow.org.zone.tpl +++ b/frontends/var/nsd/zones/master/buetow.org.zone.tpl @@ -40,6 +40,13 @@ www.blog 300 IN AAAA <%= $ips->{current_master}{ipv6} %> ; Enable failover standby.blog 300 IN A <%= $ips->{current_standby}{ipv4} %> ; Enable failover standby.blog 300 IN AAAA <%= $ips->{current_standby}{ipv6} %> ; Enable failover +gogios 300 IN A <%= $ips->{current_master}{ipv4} %> ; Enable failover +gogios 300 IN AAAA <%= $ips->{current_master}{ipv6} %> ; Enable failover +www.gogios 300 IN A <%= $ips->{current_master}{ipv4} %> ; Enable failover +www.gogios 300 IN AAAA <%= $ips->{current_master}{ipv6} %> ; Enable failover +standby.gogios 300 IN A <%= $ips->{current_standby}{ipv4} %> ; Enable failover +standby.gogios 300 IN AAAA <%= $ips->{current_standby}{ipv6} %> ; Enable failover + tmp 300 IN A <%= $ips->{current_master}{ipv4} %> ; Enable failover tmp 300 IN AAAA <%= $ips->{current_master}{ipv6} %> ; Enable failover www.tmp 300 IN A <%= $ips->{current_master}{ipv4} %> ; Enable failover |
