Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 1.57 KB

File metadata and controls

30 lines (17 loc) · 1.57 KB

Cloudflare integration

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:

1. Generate an API Token for ACME DNS-01

In Cloudflare go to your profile and find API Token option: image

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: image

Save your token and place it in .env at CLOUDFLARE_DNS_TOKEN.

2. Activate in your nginx proxy

Uncomment the following lines:

# ACME_CHALLENGE: "DNS-01"
# ACMESH_DNS_API_CONFIG: |-
# DNS_API: dns_cf
# CF_Token: "${CLOUDFLARE_DNS_TOKEN}"

And restart your service running docker compose up & at your root folder.

Disclaimer

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.