How to do custom domain with Gitblog

Doc

Custom domain is free for all users, when you create a blog on gitblog.io, it is automatically assigned a gitblog.xyz sub-domain. However, if you prefer to use your own custom domain for a more personalized touch, you can follow these simple steps:

Customizing a Sub Domain

eg. blog.exmaple.com

It is easy to bind the sub -domain, just add a CNAME record to your domain DNS record.

Type Name Content TTL Proxy Status
CNAME @ cname.gitblog.io 1min DNS only

Note: If your domain's DNS is hosted on Cloudflare, set the Proxy Status to DNS only. Please ignore Proxy Status field if you are not using Cloudflare.

Customizing an Apex Domain

eg. example.com

Using A Record

If you prefer using A records, follow these steps:

  1. Set the A record to 128.140.43.24.

    Type Name Content TTL
    A @ 128.140.43.24 1 min

    Note: If your domain's DNS is hosted on Cloudflare, set the Proxy Status to DNS only.

  2. Navigate to the DNS records portal of your domain and add an A record.

  3. Go to the GitBlog dashboard, enter your domain (e.g., example.com), and click save. Once your domain's A record is validated, your blog will be accessible immediately via the custom domain.

Using CNAME Record

If you prefer CNAME records, follow these steps:

  1. Set a CNAME record to cname.gitblog.io.

    Type Name Content Proxy Status
    CNAME @ cname.gitblog.io DNS only

    Note: CNAME record offers more benefits than the A record, but it cannot be directly added for an apex domain. Fortunately, some DNS hosting services like Cloudflare support a technique known as 'CNAME flattening.' Learn more about CNAME flattening.

  2. If using Cloudflare:

    • Navigate to your domain's DNS record settings on Cloudflare.
    • Click the Add record button to add a CNAME record.
    • Set the Proxy Status to DNS only.
  3. Go back to the GitBlog dashboard, enter your domain (e.g., example.com), and click save. Once your domain's A record is validated, your blog will be accessible immediately via the custom domain.

By following these steps, you can effortlessly customize your blog's domain, providing a unique and branded experience for your audience.

Gitblog DNS record

Type Target
CNAME cname.gitblog.io
A 128.140.43.24

If you are using Cloudflare, set the Proxy Status to DNS Only

About Gitblog

gitblog.io is a Lightweight Blogging platform, based on GitHub issues.


Comments(5)

Zhaojjjjjj Zhaojjjjjj
image 是在这里添加吧?
blackstorm blackstorm

image 是在这里添加吧?

在你的域名解析后台添加。

wc0517 wc0517

Never mind. The issue has been occurred for a week and I can't do anything. So I finally has to quit this platform.

blackstorm blackstorm

@wc0517 Hi Woody,

I'm going to fix it

blackstorm blackstorm

Never mind. The issue has been occurred for a week and I can't do anything. So I finally has to quit this platform.

Hi Woody, Custom apex domain back now!

Leave a Comment