summaryrefslogtreecommitdiff
path: root/frontends/etc
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-08-11 15:52:11 +0300
committerPaul Buetow <paul@buetow.org>2025-08-11 15:52:11 +0300
commit1230c35c66636f76c2c177a6feeaae862e24ae27 (patch)
treecbe206c887033bd3622ac5e82a0732590a5cce22 /frontends/etc
parentfc7360684af097d8520cf659c047f77f8ab9c806 (diff)
can push to registry from external
Diffstat (limited to 'frontends/etc')
-rw-r--r--frontends/etc/relayd.conf.tpl14
1 files changed, 13 insertions, 1 deletions
diff --git a/frontends/etc/relayd.conf.tpl b/frontends/etc/relayd.conf.tpl
index be33f53..1900c0b 100644
--- a/frontends/etc/relayd.conf.tpl
+++ b/frontends/etc/relayd.conf.tpl
@@ -8,6 +8,13 @@ table <f3s> {
192.168.2.122
}
+# Same backends, separate table for registry service on port 30001
+table <f3s_registry> {
+ 192.168.2.120
+ 192.168.2.121
+ 192.168.2.122
+}
+
# Local OpenBSD httpd
table <localhost> {
127.0.0.1
@@ -32,14 +39,18 @@ http protocol "https" {
pass header "Sec-WebSocket-Protocol"
<% for my $host (@$f3s_hosts) { for my $prefix (@prefixes) { -%>
+ <% if ($host eq 'registry.f3s.buetow.org') { -%>
+ match request quick header "Host" value "<%= $prefix.$host -%>" forward to <f3s_registry>
+ <% } else { -%>
match request quick header "Host" value "<%= $prefix.$host -%>" forward to <f3s>
- <% } } -%>
+ <% } } } -%>
}
relay "https4" {
listen on <%= $vio0_ip %> port 443 tls
protocol "https"
forward to <localhost> port 8080
+ forward to <f3s_registry> port 30001 check tcp
forward to <f3s> port 80 check tcp
}
@@ -47,6 +58,7 @@ relay "https6" {
listen on <%= $ipv6address->($hostname) %> port 443 tls
protocol "https"
forward to <localhost> port 8080
+ forward to <f3s_registry> port 30001 check tcp
forward to <f3s> port 80 check tcp
}