Configurable proxy middleware for node