We are looking forward to offload assets from our website (60GB onto a 8TB/mo accessed website), to a separate webserver that will be there only for serving images from a separate domain.
I know that I can apply filters to match /wp-content/uploads and rewrite these URLs in order to point at the new domain, but I have no way to have the Media Library Uploader to upload files straight to the new server.
Of course, I can provide SSH/Rsync and relative access between two servers. There are a few plugins that do the same for Buckets like AWS/Google Cloud and they do take care of removing the file locally, but the comparison of the services' price between an owned machine and these services showed big difference, so we ended up in developing our own solution.
Can anyone advise on how I can have Media Uploader to work with a different host? I thought that this was already implemented using a defined constant in wp-config, but thats untrue.