Skip to content
Back

What are the steps for using Appwrite Cloud behind a custom domain and Cloudflare tunnel?

  • 0
  • Cloud
memoonlite
26 May, 2025, 08:14

Hello everyone! 👋🏻

Currently my project in Flutter points directly to Appwrite Cloud:

TypeScript
client.setEndpoint("https://cloud.appwrite.io/v1");
client.setProject("66c47cef102a32340eds");
client.setSelfSigned(status: true);

This all works well. 👍🏻

Now I'd like to put this behind a custom domain, let's say "https://api.example.com". That I'd like to tunnel through Cloudflare as well.

I found this documentation, which seems straight forward: https://appwrite.io/docs/advanced/platform/custom-domains

But I'm confused how to set up the Cloudflare part. I already have my main domain (let's say "example.com") tunneled through Cloudflare. Now I'd like to do the same for "api.example.com".

Another thing I'm wondering is what setEndpoint, setProject and setSelfSigned on the client side look like after setting up my custom domain and Cloudflare tunnel. Is setting the project Id still needed for example? I have this in mind:

TypeScript
client.setEndpoint("https://api.example.com");
client.setSelfSigned(status: true);

Does anyone know which steps to take to set correctly set up a custom domain and Cloudflare tunnen combined with Appwrite Cloud? 😊

TL;DR
Developers want to set up Appwrite Cloud behind a custom domain with Cloudflare tunnel. They are looking for guidance on configuring Cloudflare after setting up a custom domain. They also want to know how to adjust client settings like setEndpoint and setProject post setup. Solution: 1. Follow the Appwrite documentation on setting up custom domains. 2. For Cloudflare, configure the DNS settings for the new subdomain "api.example.com" pointing to the Appwrite Cloud instance. 3. Update client.setEndpoint to "https://api.example.com" in the code to reflect the custom domain. 4. retain the client.setSelfSigned
memoonlite
26 May, 2025, 08:15

What are the steps for using Appwrite Cloud behind a custom domain and Cloudflare?

memoonlite
26 May, 2025, 08:15

What are the steps for using Appwrite Cloud behind a custom domain and Cloudflare tunnel?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more