Without a location block, nginx always executes the return block causing a 302 which makes certbot unable to renew as it follows redirects.
Without a location block, nginx always executes the return block causing a 302 which makes certbot unable to renew as it follows redirects.