Is it possible to serve static files with another server?
How to use a subdomain to serve the static files such as css and js. In this way, I can still access my forum from example.com, but all css and js files are downloaded from static.example.com which is resolved to another server. Is it possible to do that?
I would suggest to put your nodebb behind nginx, and have a location block matching static content use a proxy_pass directive pointing to your static server.
Use this as reference: https://nodebb.readthedocs.io/en/latest/scaling/index.html#use-a-proxy-server-to-serve-static-assets
And adjust it to have a proxy_pass http://static.example.com; instead of searching the local filesystem (ie, replace root and try_file directives) under the static content location block.
I believe this should work :)