summaryrefslogtreecommitdiff
path: root/frontends/etc
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/etc')
-rw-r--r--frontends/etc/acme-client.conf.tpl2
-rw-r--r--frontends/etc/gogios.json.tpl19
-rw-r--r--frontends/etc/httpd.conf.tpl2
-rw-r--r--frontends/etc/relayd.conf.tpl6
4 files changed, 21 insertions, 8 deletions
diff --git a/frontends/etc/acme-client.conf.tpl b/frontends/etc/acme-client.conf.tpl
index 8e00119..b52f5b0 100644
--- a/frontends/etc/acme-client.conf.tpl
+++ b/frontends/etc/acme-client.conf.tpl
@@ -24,7 +24,7 @@ authority buypass-test {
}
<% for my $host (@$acme_hosts) { -%>
-<% for my $prefix ('', 'www.', 'mirror.') { -%>
+<% for my $prefix ('', 'www.', 'standby.') { -%>
domain <%= $prefix.$host %> {
domain key "/etc/ssl/private/<%= $prefix.$host %>.key"
domain full chain certificate "/etc/ssl/<%= $prefix.$host %>.fullchain.pem"
diff --git a/frontends/etc/gogios.json.tpl b/frontends/etc/gogios.json.tpl
index 5160da2..84a4bec 100644
--- a/frontends/etc/gogios.json.tpl
+++ b/frontends/etc/gogios.json.tpl
@@ -6,6 +6,16 @@
"CheckConcurrency": 3,
"StateDir": "/var/run/gogios",
"Checks": {
+ <% for my $host (qw(master standby)) { -%>
+ <% for my $proto (4, 6) { -%>
+ "Check Ping<%= $proto %> <%= $host %>.buetow.org": {
+ "Plugin": "<%= $plugin_dir %>/check_ping",
+ "Args": ["-H", "<%= $host %>.buetow.org", "-<%= $proto %>", "-w", "100,10%", "-c", "200,15%"],
+ "Retries": 3,
+ "RetryInterval": 3
+ },
+ <% } -%>
+ <% } -%>
<% for my $host (qw(fishfinger blowfish)) { -%>
"Check DTail <%= $host %>.buetow.org": {
"Plugin": "/usr/local/bin/dtailhealth",
@@ -29,15 +39,18 @@
},
<% } -%>
<% for my $host (@$acme_hosts) { -%>
- <% for my $prefix ('', 'mirror.', 'www.') { -%>
+ <% for my $prefix ('', 'standby.', 'www.') { -%>
+ <% my $depends_on = $prefix eq 'standby.' ? 'standby.buetow.org' : 'master.buetow.org'; -%>
"Check TLS Certificate <%= $prefix . $host %>": {
"Plugin": "<%= $plugin_dir %>/check_http",
- "Args": ["--sni", "-H", "<%= $prefix . $host %>", "-C", "20" ]
+ "Args": ["--sni", "-H", "<%= $prefix . $host %>", "-C", "20" ],
+ "DependsOn": ["Check Ping4 <%= $depends_on %>", "Check Ping6 <%= $depends_on %>"]
},
<% for my $proto (4, 6) { -%>
"Check HTTP IPv<%= $proto %> <%= $prefix . $host %>": {
"Plugin": "<%= $plugin_dir %>/check_http",
- "Args": ["<%= $prefix . $host %>", "-<%= $proto %>"]
+ "Args": ["<%= $prefix . $host %>", "-<%= $proto %>"],
+ "DependsOn": ["Check Ping<%= $proto %> <%= $depends_on %>"]
},
<% } -%>
<% } -%>
diff --git a/frontends/etc/httpd.conf.tpl b/frontends/etc/httpd.conf.tpl
index c636b80..bca42d8 100644
--- a/frontends/etc/httpd.conf.tpl
+++ b/frontends/etc/httpd.conf.tpl
@@ -1,5 +1,5 @@
<%
- our @prefixes = ('', 'www.', 'mirror.');
+ our @prefixes = ('', 'www.', 'standby.');
%>
# Plain HTTP for ACME and HTTPS redirect
diff --git a/frontends/etc/relayd.conf.tpl b/frontends/etc/relayd.conf.tpl
index 968b4f8..f2edf43 100644
--- a/frontends/etc/relayd.conf.tpl
+++ b/frontends/etc/relayd.conf.tpl
@@ -4,9 +4,9 @@ tcp protocol "gemini" {
tls keypair foo.zone
tls keypair snonux.foo
tls keypair paul.buetow.org
- tls keypair mirror.foo.zone
- tls keypair mirror.snonux.foo
- tls keypair mirror.paul.buetow.org
+ tls keypair standby.foo.zone
+ tls keypair standby.snonux.foo
+ tls keypair standby.paul.buetow.org
}
relay "gemini4" {