Question

Ghost and Nginx doesn't work properly with each other

I tried to add certificates to my subdomain cms.trkohler.com and attach it to Ghost CMS. I followed this guide with some workarounds on the go: https://robertnealan.com/setting-up-ssl-for-ghost-on-digitalocean-with-lets-encrypt/

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

If you visit: https://cms.trkohler.com/ 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 https://cms.trkohler.com

nginx -t under the root showing everything is ok

what must went wrong?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
August 3, 2021
Accepted 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:

https://ghost.org/docs/ghost-cli/

Regards, Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.