Install fails on fresh Debian 12 installation

This is your problem.

it appears that something is keeping let’s encrypt from vising the URL that you have changed. Is something blocking port 80? Do you have cloudflare with orange cloud?