问题描述
我看过很多关于如何在 heroku 上设置 HTTPS 和 Websockets 的文档和教程,但是否可以设置其他协议,如 TLS 或 NATS?
如果可能,我该怎么做?
解决方法
不幸的是,没有。
入站请求由提供 SSL 的负载均衡器接收 终止。从这里它们被直接传递到一组路由器。
路由器负责确定您的位置 应用程序的 Web dynos 并将 HTTP 请求转发到其中之一 这些测功机。
https://devcenter.heroku.com/articles/http-routing#routing
不支持
- TCP 路由
https://devcenter.heroku.com/articles/http-routing#not-supported
Heroku 只为托管在其上的应用程序提供 http/https 路由。