Cloudflare setup¶
Use this optional guide if you want Cloudflare DNS-01 certificate issuance and automatic renewal during Installation. If you would rather provide your own certificate files, see Custom certificate management.
Cloudflare is used to get the certificates for your domain so that when we run the server, the vacuum will trust the domain. This also lets the server renew the certificate automatically so you do not have to rotate it by hand when it expires.
Create the Cloudflare Token¶
Create a user API token in Cloudflare for the zone you will use in tls.base_domain.
- Sign in to the Cloudflare dashboard.
- Open
My Profile->API Tokens. - Select
Create Token. - Start from the
Edit Zone DNStemplate. - Give the token a clear name such as
roborock-local-server-example-com. - Scope the token to only the zone you will use for this project.
- Review the summary and create the token.
- Copy the token secret immediately. Cloudflare only shows it once.
For this project, keep the token limited to the single zone you are using. Do not use a global API key.