Question

Linking Ghost 1-click install to domain

Hello, I have created a Ghost 1-click droplet and followed all the instructions on the site, but I just can’t link it to my domain. I have created the A records (DNS has updated), but there seems to be a problem with the SSL certificate.

I have bought a PositiveSSL certificate and linked it to my domain (didn’t install it yet) and don’t know if this is causing the problem. I can access the blog via the IP, but not over my domain (it refuses to connect.)


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Update: I managed to run it on my domain with http://www.domain.com, but when I run ghost config url https://www.domain.com the site crashes and returns “refused to connect”.

I also run ghost setup ssl but it throws an error (domain.com here is just a placeholder):

✖ Setting up SSL
One or more errors occurred.

1) ProcessError

Message: Command failed: /bin/sh -c sudo -S -p '#node-sudo-passwd#'  /etc/letsencrypt/acme.sh --issue --home /etc/letsencrypt --server letsencrypt --domain www.domain.com --webroot /var/www/ghost/system/nginx-root --reloadcmd "nginx -s reload" --accountemail mail@gmail.com
[Mon Nov 29 17:22:46 UTC 2021] www.domain.com:Verify error:DNS problem: SERVFAIL looking up CAA for domain.com - the domain's nameservers may be malfunctioning
[Mon Nov 29 17:22:46 UTC 2021] Please add '--debug' or '--log' to check more details.
[Mon Nov 29 17:22:46 UTC 2021] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh

[Mon Nov 29 17:22:41 UTC 2021] Using CA: https://acme-v02.api.letsencrypt.org/directory
[Mon Nov 29 17:22:41 UTC 2021] Single domain='www.domain.com'
[Mon Nov 29 17:22:41 UTC 2021] Getting domain auth token for each domain
[Mon Nov 29 17:22:43 UTC 2021] Getting webroot for domain='www.domain.com'
[Mon Nov 29 17:22:43 UTC 2021] Verifying: www.domain.com
[Mon Nov 29 17:22:44 UTC 2021] Pending, The CA is processing your order, please just wait. (1/30)

Exit code: 1


Debug Information:
    OS: Ubuntu, v20.04.3 LTS
    Node Version: v14.18.1
    Ghost Version: 4.24.0
    Ghost-CLI Version: 1.18.1
    Environment: production
    Command: 'ghost setup ssl'

Additional log info available in: /home/ghost-mgr/.ghost/logs/ghost-cli-debug-2021-11-29T17_22_47_328Z.log

Try running ghost doctor to check your system for known issues.