From 8e7527ff7fbdc2fd1c6f38f54557f2592e879b24 Mon Sep 17 00:00:00 2001 From: Sven Date: Fri, 27 Mar 2026 09:52:24 +0100 Subject: [PATCH] fix(start): webmention poller connects directly to Indiekit, not nginx nginx port 80 returns 444 (no response) for requests with an unrecognised Host header. The poller's curl sends Host: 10.100.0.10 (the IP) which doesn't match any server_name, causing the 180s readiness timeout and "empty reply from server" on every poll. Since livefetch v6 builds synthetic HTML from stored properties and no longer fetches live pages, the poller no longer needs to go through nginx. It now connects directly to Indiekit on INDIEKIT_BIND_HOST:PORT. Co-Authored-By: Claude Opus 4.6 --- start.example.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/start.example.sh b/start.example.sh index 9fb3603f..022344c9 100644 --- a/start.example.sh +++ b/start.example.sh @@ -61,11 +61,11 @@ done INDIEKIT_PID="$!" # Webmention sender — polls every N seconds (see @rmdes/indiekit-endpoint-webmention-sender README) -# Routes through INTERNAL_FETCH_URL (nginx) so the request gets correct Host header -# and X-Forwarded-Proto, avoiding empty-reply issues with direct jail connections. +# Connects directly to Indiekit (not through nginx) so the Host header doesn't +# need to match any nginx server_name. nginx port 80 returns 444 for unknown hosts. WEBMENTION_POLL_INTERVAL="${WEBMENTION_SENDER_POLL_INTERVAL:-300}" -INDIEKIT_INTERNAL_URL="${INTERNAL_FETCH_URL:-http://${INDIEKIT_BIND_HOST:-127.0.0.1}:${PORT:-3000}}" -WEBMENTION_ENDPOINT="${INDIEKIT_INTERNAL_URL}${WEBMENTION_SENDER_MOUNT_PATH:-/webmention-sender}" +INDIEKIT_DIRECT_URL="http://${INDIEKIT_BIND_HOST:-127.0.0.1}:${PORT:-3000}" +WEBMENTION_ENDPOINT="${INDIEKIT_DIRECT_URL}${WEBMENTION_SENDER_MOUNT_PATH:-/webmention-sender}" WEBMENTION_ORIGIN="${PUBLICATION_URL:-${SITE_URL:-}}" (