summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
Diffstat (limited to 'frontends')
-rw-r--r--frontends/etc/relayd.conf.tpl4
-rw-r--r--frontends/scripts/acme.sh.tpl3
2 files changed, 6 insertions, 1 deletions
diff --git a/frontends/etc/relayd.conf.tpl b/frontends/etc/relayd.conf.tpl
index 5c53df3..8c33dcf 100644
--- a/frontends/etc/relayd.conf.tpl
+++ b/frontends/etc/relayd.conf.tpl
@@ -65,6 +65,7 @@ http protocol "https" {
# For f3s hosts: use relay-level failover (f3s -> localhost backup)
# Registry is special: needs explicit routing to port 30001
+ # Jellyfin uses NodePorts (bypasses Traefik)
<% for my $host (@$f3s_hosts) {
for my $prefix (@prefixes) {
if ($host eq 'registry.f3s.buetow.org') {
@@ -73,6 +74,9 @@ http protocol "https" {
<% } elsif ($host eq 'jellyfin.f3s.buetow.org') {
-%>
match request header "Host" value "<%= $prefix.$host -%>" forward to <f3s_jellyfin>
+ <% } else {
+ -%>
+ match request header "Host" value "<%= $prefix.$host -%>" forward to <f3s>
<% }
}
} -%>
diff --git a/frontends/scripts/acme.sh.tpl b/frontends/scripts/acme.sh.tpl
index b3301fa..cd6e4cc 100644
--- a/frontends/scripts/acme.sh.tpl
+++ b/frontends/scripts/acme.sh.tpl
@@ -20,7 +20,8 @@ handle_cert () {
host=$1
host_ip=`host $host | awk '/has address/ { print $(NF) }'`
- grep -q "^server \"$host\"" /etc/httpd.conf
+ # Check for server block, accounting for f3s hosts which have -port80/-port8080 suffixes
+ grep -q "^server \"$host" /etc/httpd.conf
if [ $? -ne 0 ]; then
echo "Host $host not configured in httpd, skipping..."
return