plex到底是怎么判定远程播放的
plextv吧
全部回复
仅看楼主
level 3
我在内网搭了个nginx做反代,这样可以方便我用域名访问plex以及复用80端口,结果我在内网里另一台windows设备访问它,给我弹了远程播放收费的弹窗。是我的反代配置有问题吗:
2025年06月01日 05点06分 1
level 3
#PROXY-START/
location ^~ /
{
proxy_pass http://127.0.0.1:32400/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_http_version 1.1;
# proxy_hide_header Upgrade;
add_header X-Cache $upstream_cache_status;
#Set Nginx Cache
set $static_fileoYU7NZic 0;
if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
{
set $static_fileoYU7NZic 1;
expires 1m;
}
if ( $static_fileoYU7NZic = 0 )
{
add_header Cache-Control no-cache;
}
}
#PROXY-END/
2025年06月01日 05点06分 2
level 7
现在貌似影视远程收费了。音乐还波及。割韭菜呀
2025年06月01日 11点06分 3
level 9
可能用域名访问就算
2025年06月01日 23点06分 4
坑啊。
2025年06月02日 01点06分
level 1
让nginx不要透穿header中的host,和realip,forward等和客户端访问的字段,让plex以为纯粹是局域网内访问
2025年06月02日 02点06分 5
有道理,我尝试了下以下配置,仍然会触发弹窗……见6楼
2025年06月02日 02点06分
level 3
以下反代移除了一些客户端信息,仍然会触发弹窗呢:
#PROXY-START/
location ^~ /
{
proxy_pass http://127.0.0.1:32400/;
# 清除所有可能暴露信息的头部
proxy_set_header Host $proxy_host;
proxy_set_header Accept-Encoding "";
proxy_set_header Accept-Language "";
proxy_set_header Connection "";
proxy_set_header Cookie "";
proxy_set_header Referer "";
# 清除所有传入的X-头部
proxy_set_header X-* "";
# 防止通过Referer泄露信息
proxy_set_header Referer "no-referrer";
# 禁用代理缓冲
proxy_buffering off;
# 隐藏上游服务器的响应头
proxy_hide_header *;
set $static_filegeJ8SSI6 0;
if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
{
set $static_filegeJ8SSI6 1;
expires 1m;
}
if ( $static_filegeJ8SSI6 = 0 )
{
add_header Cache-Control no-cache;
}
}
#PROXY-END/
2025年06月02日 02点06分 6
level 1
plex都不直接连接的啊,我记得他访问都是去他服务器,你用的你给服务器的域名对比后才访问你的服务器。
2025年06月02日 03点06分 7
level 3
破案了。。。是因为我的 ****.plex.direct 相关的请求走了代理导致的。。。害。。。
2025年06月02日 03点06分 8
level 9
所以你改好了吗
2025年06月03日 07点06分 9
改好了,浏览器端会有一些plex.direct后缀域名的请求,必须走服务端的同一个内网
2025年06月03日 08点06分
@当年的子弹 哥们能分享下配置吗?
2025年06月10日 13点06分
11111
2025年06月11日 01点06分
1