Thumbnails url does not works if media folder is in a custom location

Thank you! This worked locally, but on the server I’m getting 404s on the images URL. I moved content folder to the server, made sure to empty the media folder so that Kirby generates the media again. It does generate the correct structure, even the IDs match with the URLs on the public site, but no actual image files found in the folders, only .jobs.

Very similar to this Moving servers and now images aren't showing up! - #3 by rasteiner, but with no solution unfortunately.

I’m on DigitalOcean.