Resolving Cloudflare SSL Certificate Errors for Anvil Apps Custom Domain

I wanted to share my experience with the community about setting up SSL with Cloudflare for Anvil apps custom domains.

Anvil’s documentation suggests setting Cloudflare’s SSL to “Full Strict”.


But, after doing so, I encountered issues with invalid SSL certificates from Cloudflare, which made my app unusable. The worst part was that these errors were unpredictable.


I discovered the solution was to adjust Cloudflare’s SSL setting to just “Full” instead of “Full (Strict)” to ensure custom domains work correctly with Cloudflare.

1 Like

Thank you so much for sharing this post. I’ve been scratching my head wondering why my app won’t launch! This was VERY helpful! Question for you - what are your thoughts on adding your anvil app in the CNAME? Like for example myappname.anvil.app? I read some folks talk about that and tried it - and failed. Is there a way to get the documents updated? I feel like some of these documents are a little outdated.

this 100% worked for me!

[on cloudflare]
1.) add A record for @ pointing to 52.56.203.177
2.) add A record for www pointing to 52.56.203.177
3.) adjust SSL to “Full”
4.) add custom domain name to anvil

works almost instantly. Thanks for this! Seems like their docs may be wrong or outdated

2 Likes