@meowski@feld Cloudflare Workers are built on the Service Worker API which is an open web standard, and can be self-hosted on the open source workers runtime, workerd: https://github.com/cloudflare/workerd
This allows you to choose between convenience and freedom which is a win-win.
@void@feld@meowski You’re missing the point of this. It takes the beautiful simplicity of Pleroma’s media proxy and makes it available to any application.
@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.
@void@feld@meowski Thanks for explaining the back story. I was inspired by your work, and you should take it as a compliment and not an insult, even if it's not exactly how you imagined. It does have a purpose. You're mean, but you're a genius.