I have configured Ghost CMS using Digital Ocean’s pre-built image. I have configured SMTP to send via SendGrid. I am trying to invite my team members but the invitation link looks wrong and does not work. I have searched the codebase and searched the documentation and I don’t see anything on this topic.
- My URL: http://18.104.22.168/ (I am not concerned with domain name yet)
- Ghost-CLI version: 1.14.0
- Ghost version: 3.27.0
- I used the Digital Ocean built-in image, and then ran
ghost update 3.27.0.
- I also edited
config.production.jsonto include my SMTP settings for SendGrid.
- Node version: v12.16.3, database: none, OS: Unbuntu & browser: Chrome
The source code seems to use
config.get('admin:url') for the URL value in the invitation email, and so I have added
admin.url in my
config.production.json file, as described here: https://ghost.org/docs/concepts/config/#admin-url
But when I receive the admin invitation email, the value is wrong. Instead, the domain is one of my CNAME entries from Cloudflare. This value does not exist anywhere in my server instance, and so, I don’t know how it got there.
I’m feeling a lot of frustration with this issue, because it appears to be undocumented, and the invitation email doesn’t provide the link as plain-text, which I have seen in invite emails from other services before. Having the link as plain-text is a smart thing to do, as in situations such as this. I guess I will have to edit the source code to get properly formed URL.
Could someone please tell me what’s going on with this? Thanks for your help.