summaryrefslogtreecommitdiff
path: root/frontends/scripts
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-01-31 17:51:06 +0200
committerPaul Buetow <paul@buetow.org>2026-01-31 17:51:06 +0200
commit37a776605bab8cdf0afbe4951de438cbafa61b46 (patch)
tree96123221af0a3045d831aeb730015d0491252716 /frontends/scripts
parent7af2a5fa15c49663a2f236641aedfc8aa0be5659 (diff)
Fix acme.sh to handle f3s host server blocks with -port80/-port8080 suffixes
Changes grep from exact match (^server "") to prefix match (^server ") This allows acme.sh to find and generate certificates for f3s cluster hosts. Amp-Thread-ID: https://ampcode.com/threads/T-019c14ac-164f-776f-8648-471d4ac4ce5a Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'frontends/scripts')
-rw-r--r--frontends/scripts/acme.sh.tpl3
1 files changed, 1 insertions, 2 deletions
diff --git a/frontends/scripts/acme.sh.tpl b/frontends/scripts/acme.sh.tpl
index cd6e4cc..b3301fa 100644
--- a/frontends/scripts/acme.sh.tpl
+++ b/frontends/scripts/acme.sh.tpl
@@ -20,8 +20,7 @@ handle_cert () {
host=$1
host_ip=`host $host | awk '/has address/ { print $(NF) }'`
- # Check for server block, accounting for f3s hosts which have -port80/-port8080 suffixes
- grep -q "^server \"$host" /etc/httpd.conf
+ grep -q "^server \"$host\"" /etc/httpd.conf
if [ $? -ne 0 ]; then
echo "Host $host not configured in httpd, skipping..."
return