node.js - Going in production: how to serve my static assets without NodeJS? -
in development used have node server serve static files (img, pdf, etc.) production getting closer, feel inefficient , puts unneeded load on node.
right way have assets served different server? there ready-made solution? should use "good old" apache-php stack? should know ports forwarding , stuff that?
thanks lot!
i've seen done several ways.
- use nginx serve static assets. faster apache static assets.
- use s3 , cloudfront serve static assets. you'll upload assets s3 , enable cloudfront cdn.
- use cloudflare, i'm less experienced method can't tell accept handle cdn , believe caching.
hope helps.
Comments
Post a Comment