NodeBB Assets - Object Storage
-
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
-
-
@phenomlab what does crashing the admin console look like? And if you had any CDN stuff in your nginx config you'll need to clear you're cache again. Try a different browser if you haven't already.
The CDN plugin doesn't store anything in the database except for the settings key you've already deleted. You will need to restart NodeBB after deleting the key in order for that to take effect.