Sign Up Email Directs to Local URL

Hi All -

I am slowly getting this together but still hitting an issue where various things are linking to my localhost instead of my public page. One example is my invite email that goes out for contributors “staff”. When they receive the email, it’s directing locaholst instead of appropriate URL. I have the URL set correctly in my config.production.json, where else do I need to set this up to make it work correctly?

I think related, after a post when I’m offer to copy the URL to share it, that’s all pointing to local host as well.

I’m also seeing this which seems to be not modifiable…

It should be picking up the URL from your config. Can you check that the URL is configured by going to <site>/ghost/api/admin/site/?

https://dysfunctionalreading.khaos-monkey.com/ghost/api/admin/site/ shows incorrect localhost:

{
  "site": {
    "title": "A Literary Adventure with Two Hobos and a Bri",
    "description": "A book club gone very wrong....",
    "logo": null,
    "icon": null,
    "cover_image": "https://static.ghost.org/v5.0.0/images/publication-cover.jpg",
    "accent_color": "#FF1A75",
    "locale": "en",
    "url": "http://localhost:2368/",
    "version": "5.101",
    "allow_external_signup": true
  }
}

but still not sure where it’s picking that up from. Like I said, my config.production.json file is correct (I think). Here’s what that has:

{
  "url": "https://dysfunctionalreading.khaos-monkey.com",
  "server": {
    "port": 2368,
    "host": "::"
  },
  "mail": {
    "transport": "SMTP",
    "options": {
      "service": "Google",
      "host": "smtp.gmail.com",
      "port": 587,
      "auth": {
        "user": "[REDACTED]",
        "pass": "[MY SUPER SECRET PASSWORD]"
      }
    }
  },
  "logging": {
    "transports": [
      "file",
      "stdout"
    ]
  },
  "process": "systemd",
  "paths": {
    "contentPath": "/var/lib/ghost/content"
  }
}

Just to confirm: You restarted Ghost after making changes? If this happens to be in Docker, you don’t have a docker environment variable accidentally setting URL to localhost?

1 Like

It is a docker. Definitely restarted. As far as docker environment variable accidentally setting URL to localhost, happy to check if you tell me where to look.

take a look at your docker compose file. :)

Well, that led me down a fun rabbit hole, resulting in me seeing two instances of Ghost running. Problem resolved, was both yaml and two instances of Ghost that now I need to resolve that also :) Thanks!