From 6789b71c2f39e9a8dc87c722ac34ad53890bfade Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Sun, 22 Nov 2026 16:12:24 +0000 Subject: [PATCH] web: robots.txt + sitemap.xml for the site root bbs.profullstack.com answered 404 for both. setup.sh now writes them next to the landing page on every deploy: robots names https://${DOMAIN}/sitemap.xml, and the sitemap lists the landing page plus each member homepage (/~name/) that has an index.html, with its mtime as lastmod. Co-Authored-By: Claude Opus 5.5 --- setup.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/setup.sh b/setup.sh index fea0fa9..208bc6b 100755 --- a/setup.sh +++ b/setup.sh @@ -333,6 +333,29 @@ cat > "$DATA_DIR/web/.well-known/openwebring.json" < "$DATA_DIR/web/robots.txt" <\n\n' + printf ' https://%s/%s\n' "$DOMAIN" "$(date -u +%F)" + for page in "$DATA_DIR"/users/*/public_html/index.html; do + [ -f "$page" ] || continue + member="${page#"$DATA_DIR"/users/}"; member="${member%%/*}" + case "$member" in *[!a-z0-9_-]*|'') continue ;; esac + printf ' https://%s/~%s/%s\n' "$DOMAIN" "$member" "$(date -u -r "$page" +%F)" + done + printf '\n' +} > "$DATA_DIR/web/sitemap.xml" +chown "$SVC_USER:$SVC_USER" "$DATA_DIR/web/robots.txt" "$DATA_DIR/web/sitemap.xml" # ---- 5. clone/update + build agentbbs -------------------------------------- if [ -d "$SRC_DIR/.git" ]; then