fengjueming / unblock-NetEaseMusic

海外网易云音乐代理
1.15k stars 62 forks source link

能提供服务器配置方式吗? #17

Closed kevin335200 closed 6 years ago

kevin335200 commented 6 years ago

希望能给出配置方式比如nginx,自己也搭一个,thanks

fengjueming commented 6 years ago

对于interface.music.163.com/music.163.com域名,配置nginx proxy_set_header X-Real-IP 之后跟一个可用的国内IP(上周挂了的原因就是因为那个IP失效了)

YahangWu commented 5 years ago

请问只改proxy_set_header X-Real-IP就可以嘛

目前的设置是这样的

# Cahce
proxy_cache_path  /var/cache/nginx  levels=1:2    keys_zone=STATIC:10m inactive$

server {
        listen       80;
        listen       [::]:80;
        server_name  music.163.com interface.music.163.com;

        location / {
                proxy_redirect off;
                proxy_pass https://music.163.com/;
                proxy_set_header X-Real-IP 某ip;
        }
}