项目网址:https://github.com/synctv-org/synctv
官方网站:https://synctv.wiki/
Docker 安装
docker run -d --name synctv -p 8080:8080 synctvorg/synctv
进入用户页面 > 平台绑定 alist用外网地址
nginx反代设置
location / {
proxy_pass http://127.0.0.1:8080;
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 X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
client_max_body_size 20m;
proxy_http_version 1.1;
}
nginx: [emerg] unknown "connection_upgrade" variable 出错解决办法:
http {
#添加这段
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
#添加这段
.....
}