|
本帖最后由 corntvfengbai 于 2024-3-30 09:49 编辑
手机安装termux
设置nginx代理,此设置可以减少99%的服务器请求,各种直播软件中的地址直接指向这台手机
直播源代理
location /m3u.txt {
proxy_pass https://直播源地址/m3u.txt; proxy_cache my_cache; proxy_ignore_headers "Cache-Control" "Expires" "Set-Cookie"; proxy_cache_valid 200 10d; proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
}
这段加到http片段
proxy_cache_path /data/data/com.termux/files/usr/etc/nginx/share levels=1:2 keys_zone=my_cache:10m max_size=10g inactive=60m use_temp_path=off;
epg代理设置
location / {
proxy_pass http://epg地址/diyp/;
proxy_cache my_cache;
proxy_ignore_headers "Cache-Control" "Expires" "Set-Cookie";
proxy_cache_valid 200 1000m;
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
} |
|