Split CDN for user uploads possible?

pr-welcome

(Dylan) #1

Is it possible to split uploads to different hostnames for user uploads and images/css/js provided by Discourse itself? I don’t have the funds to serve 4-5MB+ each images off CDN, but will happily serve site assets off a CDN.


(Jeff Atwood) #2

This is a good point. @sam?

However note that 2mb is the max default image size allowed in stock Discourse.


(Sam Saffron) #3

There is no way to do this at the moment, reasonable feature request though.


(Jeff Atwood) #4

I think this is something we’re gonna need internally soon @sam.


(Sam Saffron) #5

We never really got around to this, I am not against adding such a feature perhaps someone in the community that needs to use this feature can send through a PR for: disable_cdn_on_uploads and disable_cdn_on_avatars


(Ed Arcos) #6

+1 to the request, this would help us greatly. We’re comfortable using Cloudflare but having the option to use MaxCDN for user uploads would be great.