mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 02:54:26 +00:00
The checker matches accepted codes by hostname, and a clearnet vhost shares only its leftmost label with its onion twin, so --accept-status mirror.<primary>=404 never applied to mirror.<host>.onion. That vhost serves the same by-design 404, so the probe called it unreachable and systemd failed the service -- with the identical message the missing flag produced, while the status had already moved from 2/INVALIDARGUMENT to 1/FAILURE. --skip-domain carried this derivation all along, in is_skipped_domain; replacing it with --accept-status dropped it. The expansion now runs on the same label rule, in the wrapper rather than the lookup, because the onion address does not exist yet when the unit is rendered -- only the wrapper sees both names, and it reads them from the nginx configs. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>