Images appear broken right after upload

Similarly to /media/ vs /proxy/ issue - #2 by ultem and (maybe?) meta.akkoma.dev/t/image-upload-problems-after-the-latest-upgrade/711/19

I just set up my instance and all images uploaded via filepicker or profile ava upload appear broken right after uploads (preview for ava img is fine b4 saving)

They do store fine on /var/lib/akkoma/uploads
(Which the FE panel also points to!)

Uploading emoji via fe panel works fine (folder 755 and files 644 with owner 113 and group 65543)

I just set this instance up.

Why is a freshly setup Akkoma having so much trouble ?

PS:
I just saw
" Pleroma.Upload.Filter.Exiftool.StripMetadata
Strip specified metadata from image uploads"

Say does this maybe have an effect ?

PPS: any relevant logs i could post ?

1 Like

ngix
…/sites-available/akkoma
and
…/sites-enabled/alceawis.com

Had to reissue a SSL cert too, ofcourse..

And now the images load.

I could post the ChatGPT log of me bashing pooer AI boi,

But alas.

At least it is resolved.

Key term:
Reverse Proxy (being unable to do its job)

1 Like

Hi :slight_smile: I came to this forum because I have that problem with broken images in the frontend as well. When I upload something it says, the upload failed, but the files are actually put into /var/lib/akkoma/uploads/ and as mentioned before, in the UI there are ā€œbroken imageā€ placeholders. I made an OTP installation on Debian and using Nginx as reverse proxy. I’m not bad at Nginx configuration, but also not deep in the topic. Images are uploaded without seperate media host.

Would you mind to share details? I’m sure there’s only a small detail wrong in my nginx config that breaks it. BTW when I right-click a broken image and open it in a new tab then the URL is like:

https://<DOMAIN>/<DOMAIN>/media/filename.jpg

I’ve spent already quite a few hours and cannot solve this and would be very happy and thankful if you could help.

As i can only post 2 links max

Here is one the conf on pastebin

I think akkoma.conf is the same as this {domain}.conf

1 Like