Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@alex @feld @meowski You're missing the point of the origin and goal of that piece of Pleroma.
When I committed it, it was a small part of a larger piece (and only focused on reverse-proxy). The project from which I extracted that reverse proxy from was already doing media manipulation (in a shitty way). I let pleroma do their way on manipulation because I still didn't had myself a correct way (and other personal reasons) - and their way was as bad as the source, just different.
That's why we got the horrors like the fifo insanity and the Qt media rewrite (and don't even get me started on libmagic).
In parallel, the original extract advanced, libmagic efforts got results, etc - but this happened outside of pleroma.
But in any way: the reverse proxy wasnt intended to just be a stupid dumbfuck proxy, it was always intended as a fully fledged media manipulation proxy.
A js worker cloudflary isn't what it was meant to be.
And if you just want to do it that way: stop using that piece of code. Just do it with pure workers, or heck, even a 10 lines nginx config will do it.