Here is how I fix this. (I simply edit my Ghost site files in the browser-based File Manager of my cPanel-hosted Ghost sites.)
(Also note that after making the below change, you may need to Restart your Ghost and/or possibly also re-upload the offending images in your posts to reset the URLs in the database.)
Anyhoo, this first block of code below shows the entire contents of the config.development.json file in the root directory of my Ghost site.
Here you can see that that the “url”: was (by default, at the time of installation) set to http instead of https (as it should be, to prevent a bunch of glitchy error notices i.e. images and other content links either not working, or redirecting to https paths):
{
"url": "http://keeper.gwarp.com/",
"server": {
"port": 2379,
"host": "127.0.0.1"
},
"database": {
"client": "sqlite3",
"connection": {
"filename": "/home/gwarp/KEEPER/content/data/ghost-local.db"
}
},
"mail": {
"transport": "Direct"
},
"logging": {
"transports": [
"file",
"stdout"
]
},
"process": "local",
"paths": {
"contentPath": "/home/gwarp/KEEPER/content"
}
}
In this second block of code you can see that I’ve just changed http to https (while leaving everything else as-is):
{
"url": "https://keeper.gwarp.com/",
"server": {
"port": 2379,
"host": "127.0.0.1"
},
"database": {
"client": "sqlite3",
"connection": {
"filename": "/home/gwarp/KEEPER/content/data/ghost-local.db"
}
},
"mail": {
"transport": "Direct"
},
"logging": {
"transports": [
"file",
"stdout"
]
},
"process": "local",
"paths": {
"contentPath": "/home/gwarp/KEEPER/content"
}
}