Charlotte牛人大佬:
https://github.com/yujincheng08/BiliRoaming/wiki/%E8%87%AA%E5%BB%BA%E5%A4%87%E4%BB%BD%E6%9C%8D%E5%8A%A1%E5%99%A8
上面自建备份的地址
server {
listen 443 ssl http2;
server_name ****;
root /usr/share/nginx/html;
index index.php index.html;
ssl_certificate /usr/local/etc/xray/cert/fullchain.cer;
ssl_certificate_key /usr/local/etc/xray/cert/private.key;
location /bff9 {#这个是一键包里面自带的
proxy_redirect off;
proxy_pass http://127.0.0.1:11234;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
}
location /pgc/player/api/playurl { # 用于 APP 解析
proxy_set_header Host api.bilibili.com;
}
location /pgc/player/web/playurl { # 为油猴脚本做准备
proxy_set_header Host api.bilibili.com;
}
}
重启ng之后 还是代理不了 是啥问题? 哪位能帮助下
r1172464137牛人大佬:
没日志我觉得没办法
Caxen牛人大佬:
直接反代https://api.bilibili.com,其他什么都不用管,
小白就装个宝塔,站点开好ssl,反代上面网址,无需其他设置
Charlotte牛人大佬:
直接反代https://api.bilibili.com,其他什么都不用管
proxy_set_header Host https://api.bilibili.com
改成这样 还是咋改?
Caxen牛人大佬:
proxy_set_header Host https://api.bilibili.com
改成这样 还是咋改?
- location /
- {
- proxy_pass https://api.bilibili.com;
- proxy_set_header Host api.bilibili.com;
- 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;
- }
Caxen牛人大佬:
proxy_set_header Host https://api.bilibili.com
改成这样 还是咋改?
你的11234下面是什么服务,如果只有单台hk/tw小鸡的话按我说的配就好了,你这个配置是本地连其他鸡反代用的