Create a Reverse Proxy in NodeJS that can handle multiple secure domains

后端 未结 6 1292
猫巷女王i
猫巷女王i 2021-02-04 17:09

I\'m trying to create a reverse proxy in NodeJS. But I keep running the issue that in that I can only serve one one set of cert/key pair on the same port(443), even though I wa

6条回答
  •  孤街浪徒
    2021-02-04 17:19

    You stated you don't want to use nginx for that, and I don't understand why. You can just setup multiple locations for your nginx. Have each of them listen to different hostnames and all on port 443. Give all of them a proxypass to your nodejs server. To my understanding, that serves all of your requirements and is state of the art.

提交回复
热议问题