.well-known/acme-challenge/ fail 404 in nginx proxy

Can you also try to place the location match block (let’s Encrypt acme-challenge) before the overall location block?