Hello! I have a new site installed with Bedrock/Capistrano. I am not using Sage, Trellis or Ansible.
Everything is going great - until I tried to upload some images. The images upload correctly - but do not display in either the media library or on a post - I just see the broken image icon.
My permissions and ownership settings are ok - the images DO get uploaded to the server (I can see them in the shared/web/app/uploads/2017/06 directory) and they are also in the database. If I do:
Select * from wp_posts where post_type = ‘attachment’;
They are present, with the correct urls (example.com/app/uploads/2017/06/myimage.jpg)
I’m thinking this is an nginx configuration problem - I am using the standard rewrite as suggested by nginx:
if (!-e $request_filename) {
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
rewrite ^/[_0-9a-zA-Z-]+(/wp-.) $1 last;
rewrite ^/[_0-9a-zA-Z-]+(/..php)$ $1 last;
}
Any advice on this? Am I missing a setting for the uploads folder? Thank you.