Setting up custom domain and enabling Cloudflare proxy on FLY.io for Django and Python programming

Posted by

Add custom Domain & enable Cloudflare proxy FLY.io

Add custom Domain & enable Cloudflare proxy FLY.io

In this article, we will discuss how to add a custom domain and enable Cloudflare proxy on FLY.io for a Django project written in Python.

Step 1: Set up a custom domain

Before we can enable Cloudflare proxy on FLY.io, we need to set up a custom domain for our Django project. To do this, follow these steps:

  1. Register a domain name with a domain registrar.
  2. Point the domain’s nameservers to FLY.io’s nameservers.
  3. Add the custom domain to FLY.io’s dashboard under the “Custom Domains” section.
  4. Configure the domain settings in FLY.io’s dashboard to point to your Django project.

Step 2: Enable Cloudflare proxy

Once the custom domain is set up, we can enable Cloudflare proxy to improve security and performance for our Django project. To do this, follow these steps:

  1. Create a Cloudflare account and add the custom domain to your account.
  2. Change the nameservers of your custom domain to Cloudflare’s nameservers.
  3. Set up SSL/TLS encryption in Cloudflare’s dashboard for the custom domain.
  4. Enable the Cloudflare proxy by turning on the orange cloud icon next to the custom domain in Cloudflare’s dashboard.

Conclusion

By following these steps, you can add a custom domain and enable Cloudflare proxy for your Django project running on FLY.io. This will help improve security, performance, and reliability for your project.

0 0 votes
Article Rating
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
@boco6969
7 months ago

how long did it take for your subdomain to work?