Working solution
The idea is to use proxy_pass for two threads:
- redirect port 80 to port Browsersync 3000 when clicking on the root path
/myangular2app - using proxy_pass to port 3000 with web socket support for the
browser-sync path and its descendants
Here is the nginx configuration
server { listen 80 default_server; listen [::]:80 default_server; root /var/www;
source share