This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
Teleport服务端默认WEB服务端口为7190,可以在TP服务器前面架设一个Nginx:
从TP v3.x开始,部分页面使用了websocket进行实时通讯,因此,Nginx的配置文件需要做一些额外调整,下面是一个示例(以Nginx服务与TP服务在同一台主机上为例):
# ...其他内容... server { listen 80; server_name www.your-teleport-domain.com; location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_pass http://127.0.0.1:7190; # 以下三行是websocket需要的 proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } } # ...其他内容...
如果Nginx与TP服务不在同一台主机上,那么还要记得在Nginx服务所在主机上为TP服务器开启相应的端口转发,默认的需要52089/52189/52389三个端口,具体的端口值,请检查你的TP服务核心配置文件 core.ini 。
首页
常见问题
JSON-RPC
Deleting the wiki page "deployment nginx" cannot be undone. Continue?