Ghost and Nginx doesn't work properly with each other

Posted July 27, 2021 248 views

I tried to add certificates to my subdomain and attach it to Ghost CMS. I followed this guide with some workarounds on the go:

I setted up successfully certs for my subdomain. However, I lost all my ghost urls attached.

If you visit: you’ll see the empty page with DO prompt to set up the site.
I’ve already did this before, of course. Visiting /ghost/ doesn’t help.

ghost ls shows me ghost instance is running in production.
ghost config url is setted to

nginx -t under the root showing everything is ok

what must went wrong?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi there,

I believe that with Ghost there is a built-in implementation of Let’s Encrypt, so adding an Nginx instance in front of your Ghost service is not necessary.

You could set up the SSL with:

sudo -i -u ghost-mgr

ghost setup ssl

For more information on all ghost commands I could suggest taking a look at the official documentation here: