synctv-org / synctv

Synchronized viewing, theater, live streaming, video, long-distance relationship
https://demo.synctv.wiki
GNU Affero General Public License v3.0
886 stars 72 forks source link

[疑问] 文档中的反向代理字段在 NginxProxyManager 中怎么使用? #185

Closed LegendAdmin closed 2 weeks ago

LegendAdmin commented 3 weeks ago

我使用的是汉化版的NPM

无论在 自定义位置 还是 高级 中添加文档中的字段都会导致反向代理离线

如图所示

用法 1

image

用法 2

image

结果

image

c0rnP1ex commented 3 weeks ago

同问

zijiren233 commented 3 weeks ago

反代配置改了下,再试试: https://docs.synctv.wiki/#/zh-cn/reverse-proxy

LegendAdmin commented 3 weeks ago

反代配置改了下,再试试: https://docs.synctv.wiki/#/zh-cn/reverse-proxy

是这样吗?

自定义位置 高级
image image

但我这样还是会离线,而且我看高级下面的注释写

这里添加的任何add_header或set_header配置都不会被nginx使用

那我应该怎么写?还是说我不能用NPM来添加反向代理?

zijiren233 commented 3 weeks ago

我没用过npm 你按照普通应用开启反向代理,并允许websocket就行

KonoLLo commented 3 weeks ago

Nginx Proxy Manager反代的话这里不用设置,开启详细内容页面的Block Common Exploits(阻止常见漏洞),Websockets Support(支持websocket)。SSL页面的Force SSL(强制SSL),HTTP/2 Support(支持HTTP/2)。

KonoLLo commented 3 weeks ago

微信截图_20240612114823 微信截图_20240612114839