- https://bryanchandler.com
- v3.25.0
- Digital Ocean preconfigured dropplet
- node v12.18.0
- MySQL
- Ubuntu 18.04.4 LTS
- Chromium
I’m trying to configure Mailgun on my self-hosted Ghost instance. I edited config.production.json as instructed here Configuration - Adapt your publication to suit your needs
{
“url”: “https://bryanchandler.com”,
“server”: {
“port”: REDACTED,
“host”: “127.0.0.1”
},
“database”: {
“client”: “mysql”,
“connection”: {
“host”: “localhost”,
“user”: “ghost”,
“password”: “REDACTED”,
“database”: “ghost_production”
}
},
“mail”: {
“transport”: “SMTP”,
“options”: {
“service”: “Mailgun”,
“auth”: {
“user”: “postmaster@mg.bryanchandler.com”,
“pass”: “REDACTED”
}
},
“logging”: {
“transports”: [
“file”,
“stdout”
]
},
“process”: “systemd”,
“paths”: {
“contentPath”: “/var/www/ghost/content”
}
}
But I get an error when I restart ghost. ghost doctor outputs:
Checking system Node.js version
Ensuring user is not logged in as ghost user [skipped]
Checking if logged in user is directory owner [skipped]
Checking current folder permissions
Validating config
Checking content folder ownership
Checking memory availability
Checking binary dependencies
One or more errors occurred.
- Validating config
Error detected in the production configuration.
Message: Config file is not valid JSON
This syntax is directly copied from the article I linked to, and I don’t know what the issue is. I’m sure there’s a single space added/missing somewhere.
Thanks.