I am just beginner, so my question/architecture could be silly. Please correct me if it is. I need to write an application, that:
- Delivers static content (index.html, css, client scripts and images, is handled via nginx only)
- Handles jsonrpc api requests (nginx proxies all requests to node.js server)
- Handles socket.io connections (i don't see any reason to proxy them via nginx, so i think it should be provided direct connection to node.js application)
Is this possible? So all static requests and jsonrpc are handled using nginx (and node.js as backend in second case), and socket.io connetions on different port without nginx?