If using Cloudflare services, an API Token to allow your server to validate your domain with DNS-01 might be needed.
We recommend using Cloudflare for a couple of reasons...
Follow the steps below to use DNS-01:
In Cloudflare go to your profile and find API Token option:

You can manually create one or use the 'Edit zone DNS' template. Remember to add your domains which you would like to allow this token to have access to it and the source IP address:

Save your token and place it in .env at CLOUDFLARE_DNS_TOKEN.
Uncomment the following lines:
nginx-proxy-automation/docker-compose.yml
Lines 63 to 66 in 462b224
And restart your service running docker compose up & at your root folder.
As of acme-compnation if we can not comply to use HTTP-01, using DNS-01 could be used, as also per acme.sh as well. So, following acme-compnation instruction a global API Key could be used, but we do not like this idea much due to security resons, reason why we suggest creating a more restrict API Token as indicated above.