Custom domain for self-hosting

Hosting Method: Ghost Docker Image with Synology NAS (Self Hosting)
Domain: GoDaddy

Hi, I recently purchased a domain from Godaddy and want to connect it to my self-hosted ghost blog.

My goal is to connect the ghost blog directly to the domain and have direct access to the blog when I connect to the domain, rather than having to reroute my synology reverse-proxy in the middle.

I first looked at the Ghost forums and found that it’s easy to change this on Ghost (Pro), but I couldn’t see how to do it on Self Hosting.

I also read that I can use nginx to fix it, but I don’t remember installing nginx when I Docker’d my Ghost blog, so I’m not sure how to go about it.

How do you currently access your blog? That is, an IP address using port, e.g., http://192.168.0.45:2368, or a local domain, e.g., http://blog.local? Likewise, confirm use of http or https.

There are a number of things you’ll need to do, inluding:

  • Setup a DDNS service to access your home network (unless your ISP provides a fixed IP)
  • Setup DNS records for the domain
  • Setup SSL on your server
  • (Setup) and configure Nginx to proxy Ghost
  • Setup firewall rules so Ghost is accessible from outside your network.

You’ll need to provide more information to recieve specific help on each point. However, if you’re not clear about doing this, I’d caution you to be careful as a misconfiguring could expose your home network to the Internet!

1 Like

Hello @CANU , I had same issue and I described all the steps I did for my blog. So, here is a series of articles as a guide for self-hosting the Ghost: The Ghost Blog: Complete Guide

But at this moment you probably will be mainly interested in this one:

I hope it helps to you

I used cloudflare to replace GoDaddy’s nameservers, set up autorouting for the port, reissued the SSL certificate, changed the url settings for the container, and finally connected!

Apparently there was an issue with the SSL certificate…

1 Like

Apparently there was an issue with the SSL certificate…

Thanks for your help!

I’m glad to hear that!