Images upload ok but do not show in post


#1

Hi All
I have uploaded an image without issue but I just cannot get it to display.

Image: /content/images/2018/05/banner-4.png

Ghost-CLI version: 1.7.3
Ghost Version (at /var/www/ghost): 1.22.7
Nginx with MariaDb.

Ghost Doctor:
pi@wolf-ghost:/var/www/ghost $ ghost doctor
:heavy_check_mark: Checking system Node.js version
:heavy_check_mark: Checking logged in user
:heavy_check_mark: Ensuring user is not logged in as ghost user
:heavy_check_mark: Checking if logged in user is directory owner
:heavy_check_mark: Checking current folder permissions
System checks failed with message: ‘Linux version is not Ubuntu 16’
Some features of Ghost-CLI may not work without additional configuration.
For local installs we recommend using ghost install local instead.
? Continue anyway? Yes
:information_source: Checking operating system compatibility [skipped]
:heavy_check_mark: Checking for a MySQL installation
Running sudo command: systemctl is-active ghost_wolf-net
:information_source: Validating config [skipped]
:heavy_check_mark: Checking folder permissions
:heavy_check_mark: Checking file permissions
:heavy_check_mark: Checking content folder ownership
:heavy_check_mark: Checking memory availability

I think its a permissions issue but the doctor passes.
However, when attempting to clean up some of the images that got duplicated in the multiple attempts I got a permissions denied error (winSCP with same shell user).

Any hints or tips greatly appreciated!
Thanks,
S.


#2

I do apologies my friends!
I found the issue.
It was in my nginx ghost config.
Removed this line and all fine…
location ~* .(jpg|jpeg|png|gif|ico)$ {
expires 365d;
}
But how to cache?? I will do some research. Thanks.


#3

Hey @siliconwolf :wave: You shouldn’t need to do anything with Expires headers and such, Ghost already outputs 1-year expiry headers for images and static theme assets.

If you want to use your nginx server as a cache server then you could look into nginx’s proxy_cache config. Just be careful that you don’t over-cache things, especially the yoursite.com/ghost/* URLS because caching the API requests can cause very odd/broken behaviour in the admin.


#4

Fantastic. Thanks so much for your help.

Regards

Steve

Please excuse the brevity and grammar of this message as sent from a mobile device.


#5

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.