Skip to content

Setup Custom Domain for Your Worker

tks18 edited this page Dec 7, 2020 · 1 revision

Setup the Custom Domain in Cloudflare

  • Log in to your Cloudflare account.

  • Click on Add site from the top navigation bar.

  • Enter your website’s root domain and then click Add Site. For example, if your website is www.example.com, type example.com.

  • Cloudflare attempts to automatically identify your DNS records. This process takes approximately 60 seconds to complete.

  • Click Next.

  • Select the Free Plan, Which is More than Necessity.

  • Click Confirm in the Confirm Plan window that appears.

  • Click Continue.

  • Copy the 2 Cloudflare nameservers displayed and click Continue.

  • Login in to Your Freenom Account.

  • In the Top Navigation Bar, Click My Domains,

  • Select the Domain which You Registered.

  • In the Management Tools, Select Nameservers.

  • Paste those 2 Nameservers You Copied From Cloudflare.

  • Now Go to Cloudflare and Go Inside Your Domain.

  • Click on Recheck Now Button At the Bottom, Your Domain will be Verified within a Hour.

You have Successfully Setted up the Freenom Domain with Cloudflare Account.

Route Your Worker to Custom Domain

  • Add a CNAME record to the worker Address You obtained.

https://telegra.ph/file/da87d4485da072329ce80.png

  • Then go to Workers and click ADD route

https://telegra.ph/file/916f902e55e1b9c2169ff.png

  • Enter the custom domain name, you need to pay attention to add it later /*, for example, example .sample.ga/, the following workers select the project created before.

https://telegra.ph/file/1e05d3f0330032a3bc873.png

You have Successfully Routed Your Worker to Custom Domain. Now You will be Able to View Your Worker in the Custom Domain.

Enable Always Use HTTPS for Your Domain

  • If you want http to automatically jump to https, you need to enable it Always Use HTTPS:

https://telegra.ph/file/b6ae0382c3fedb6b72ad6.png

Ahhh ! Finally You have Finished Setting up all the Stuffs that you need to Run a G Index, But Wait its not Over, More Customizations are Available, You can Find in the Coming Pages.

Clone this wiki locally