Home  >  Q&A  >  body text

nginx - port forwarding for automated deployment

I have a question, I hope the experts can answer it.
It is the automated deployment of some companies, one-click deployment of web applications, and random ports. I would like to ask how the front-end proxy server is dynamically mapped to these newly deployed random ports?

某草草某草草2596 days ago659

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-05-16 17:21:44

    “自动化部署,一键部署web应用,并且随机端口” 想办法取到这个端口,从自动化部署的工具的输出中,或者修改 “随时端口” 的生成方式。

    Nginx + lua 可以满足你的要求。可以参见 OpenResty 的文档:http://openresty.org/

    reply
    0
  • Cancelreply