Skip to content
This repository was archived by the owner on Jan 14, 2020. It is now read-only.

Commit 742b66d

Browse files
committed
Update README.md
1 parent ae76297 commit 742b66d

File tree

1 file changed

+3
-51
lines changed

1 file changed

+3
-51
lines changed

README.md

+3-51
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@
77

88
[![NPM](https://nodei.co/npm/unblock-netease-music.png?downloads=true&downloadRank=true)](https://nodei.co/npm/unblock-netease-music/)
99

10-
English version [here](https://github.com/ITJesse/UnblockNeteaseMusic/blob/master/README_en.md).
11-
1210
# 依赖
1311

1412
1. Node.js 4.x+
1513

1614
# 使用方法
1715

18-
1. `npm install unblock-netease-music -g`
16+
1. `npm install unblock-netease-music@1.2.9 -g`
1917
2. `unblockneteasemusic`
2018

2119
## 测试服务
@@ -39,6 +37,7 @@ unblockneteasemusic -h
3937
-k, --kugou Find copyright music on Kugou.
4038
-d, --dongting Find copyright music on TianTianDongTing.
4139
-q, --qq Find copyright music on QQ Music.
40+
-r, --rewrite-url Rewrite music download url, let client download file through proxy.
4241
```
4342

4443
## OSX 用户
@@ -83,54 +82,7 @@ server {
8382

8483
# 搭建自己的代理服务器
8584

86-
1. 安装 nginx 和 Node.js
87-
2. Nginx 配置如下
88-
89-
```
90-
server {
91-
listen 80;
92-
server_name music.163.com;
93-
94-
location / {
95-
if ($http_host !~* ^(music.163.com)$){
96-
return 500;
97-
}
98-
proxy_pass http://localhost:8123;
99-
proxy_set_header Host $host;
100-
}
101-
}
102-
```
103-
104-
3. 安装 sniproxy,配置如下
105-
106-
```
107-
user daemon
108-
pidfile /var/run/sniproxy.pid
109-
110-
error_log {
111-
syslog daemon
112-
priority notice
113-
}
114-
115-
listen <YOUR_SERVER_IP>:443 {
116-
proto tls
117-
table https_hosts
118-
119-
access_log {
120-
filename /var/log/sniproxy/https_access.log
121-
priority notice
122-
}
123-
fallback 127.0.0.1:443
124-
}
125-
126-
table https_hosts {
127-
music.163.com 223.252.199.7:443
128-
}
129-
```
130-
131-
4. 安装本代理 `sudo npm install unblock-netease-music -g`
132-
5. 运行 `unblockneteasemusic`.
133-
6. 完成!
85+
请查阅 master 分支。
13486

13587
# 预览
13688

0 commit comments

Comments
 (0)