Stripped down confing from our setup, i tried to follow multiple articles but none worked on it self so i had to combine them for our purpose.
It works like this, your modules are served from addres js/compiled/webpack_hot
which is managed by nginx, when you go there, nginx passes control to local port 9821
, webpack dev server is running on this port.