I’ve set up the WebDAV adapter for storing images in Ghost v2.27.0.
My Ghost is installed at snipette-ghost.herokuapp.com, while uploaded images are stored in a dedicated server, available through media.snipettemag.com.
However, when I upload an image via Ghost, it links to the image at snipette-ghost.herokuapp.com/content/…, which means the request goes to Ghost, which fetches it from the media server, and then displays it. I’d like to remove this roundabout step by making Ghost link images directly to media.snipettemag.com/… instead.
What’s the best way to go about this?
One option is to do a “find and replace” on the database every time Ghost saves an image, but that’s obviously not great. I’m guessing there’s some configuration required, either in the router system or in the adapter code, but I’m not sure which. Can anyone help out?