workerman icon indicating copy to clipboard operation
workerman copied to clipboard

about running workerman as http server & websocket server

Open raghuveer opened this issue 4 years ago • 2 comments

Hi,

can we run nginx to serve ssl offloading & reverse proxy purpose running on port 443 and run http server and websocket server triggering code with workerman

  1. in different folder structure & URI on the same port like 3000?

http server: https://example.com:3000 websocket server: https://example/ws/:3000 (sub-folder scenario) https://ws.example.com/:3000 (sub-domain scenario though)

  1. in same folder structure & URI on different ports like 3000 for http server and 3001 for websocket server kind of?

http server: https://example.com:3000 websocket server: https://example:3001

Hope both are possible?

raghuveer avatar Dec 21 '21 05:12 raghuveer

Yes both are possible

walkor avatar Dec 21 '21 06:12 walkor

thank you for your confirmation

raghuveer avatar Dec 21 '21 16:12 raghuveer