liberal-boy / tls-shunt-proxy

分流 TLS 流量,支持按 sni 分流,分流 http 和无特征流量
327 stars 64 forks source link

请教让emby-server走443方式 #22

Closed ghost closed 3 years ago

ghost commented 3 years ago

你好,请教一下: 我现在用tls-shunt-proxy 分流伪装网站html和trojan tls-shunt-proxy的config.json这样: vhosts:

vps还搭建了emyb-server,用8096默认端口正常观影

然后想让emby走443,替换掉html伪装网站

尝试args: /var/www/html改成args: 127.0.0.1:8096 访问https提示404 page not found;

然后卡住不知道怎么处理了~

特此上来求助下 :)

h31105 commented 3 years ago

如果default分流没有占用的话,可以考虑用default分流试试

liberal-boy commented 3 years ago

@wsa01378 请发修改后的完整配置文件

ghost commented 3 years ago

@liberal-boy 你好,我改成这样,能用了。不知这样写正不正确

展开查看


listen: 0.0.0.0:443
redirecthttps: 0.0.0.0:80

vhosts:

 name: domain.com
    tlsoffloading: true
    managedcert: true
    http:
      handler: proxyPass
      args: 127.0.0.1:8096
    trojan:
      handler: proxyPass
      args: 127.0.0.1:22567

tudoubocai commented 1 year ago

看到你在别的发放发的帖子了,又在这里看到。虽然过了两年了。但我还是把我的解决方案贴在这里 用另一个域名。

在vhosts下面添加