NodeBB Assets - Object Storage
-
There's https://github.com/NodeBB/nodebb-plugin-cdn but it's probably incompatible with newer NodeBB versions
-
What is the url of the requested file? And is privateUploads turned on in your settings? I think this plugin doesn't work if uploaded files are private. https://github.com/NodeBB/nodebb-plugin-cdn/commit/59a069827340e718d860a3ecf458b9a01ffc4711
-
@baris I've set the URL to https://cdn.sudonix.dev and uploads are not private. The URL of the requested assets in this case should be https://cdn.sudonix.dev but are in fact https://sudonix.dev
-
The CDN plugin uses redirects. It doesn't need the nginx stuff, that's just optimization. (nginx is much better at a simple redirect rule than nodejs) I'm not sure exactly what you're doing in the browser console but it's likely you will still get initial requests to your NodeBB domain, especially if your cache is disabled like the browser tools often does when open.
-
@phenomlab yeah I'd get it working without nginx first. What exactly do you see in your browser network tab?
-
@phenomlab try clearing your cache. You can deactivate the plugin with
./nodebb reset -p @nodebb/nodebb-plugin-cdn