Mail config on config.production.json produces "Error: ... Unexpected token / in JSON at position 248"

Hi, my mail setup in config.producton.json does not work, we get startup errors with it.

{
  "url": "http://localhost:2368",
  "server": {
    "port": 2368,
    "host": "0.0.0.0"
  },
  "database": {
    "client": "sqlite3",
    "connection": {
      "filename": "/var/lib/ghost/content/data/ghost.db"
    }
  },
  "mail": {
    "from" : "'Coach Coolname' < name@domain.com > ",
    "transport": "SMTP",
    "options": {
       "host": "smtp.internet.co.za",
       "port": 25
    } 
  },
  "logging": {
    "transports": [
      "file",
      "stdout"
    ]
  },
  "process": "systemd",
  "paths": {
    "contentPath": "/var/lib/ghost/content"
  }
}

Your Questions

  • What version of Ghost are you using? Docker image ghost:3.2.0
  • What browser? not applicable.
  • What errors or information do you see in the console?
    when I use this config:
    Error: Error parsing your configuration file: [/var/lib/ghost/config.production.json]: Unexpected token / in JSON at position 248

Does anybody have some guidance please?

The config file you provided seems to be correct. Can you run your unredacted config file through a JSON validator like https://jsonlint.com/?

All okay with lint. Could not get it working for Docker, found a site that shwed how to introduce all required variables into Docker in Docker Compose - as env variables. Now working, thank you.