This repository was archived by the owner on Jan 14, 2020. It is now read-only.
Commit 742b66d 1 parent ae76297 commit 742b66d Copy full SHA for 742b66d
File tree 1 file changed +3
-51
lines changed
1 file changed +3
-51
lines changed Original file line number Diff line number Diff line change 7
7
8
8
[ ![ NPM] ( https://nodei.co/npm/unblock-netease-music.png?downloads=true&downloadRank=true )] ( https://nodei.co/npm/unblock-netease-music/ )
9
9
10
- English version [ here] ( https://github.com/ITJesse/UnblockNeteaseMusic/blob/master/README_en.md ) .
11
-
12
10
# 依赖
13
11
14
12
1 . Node.js 4.x+
15
13
16
14
# 使用方法
17
15
18
- 1 . ` npm install unblock-netease-music -g `
16
+ 1 . ` npm install unblock-netease-music@1.2.9 -g `
19
17
2 . ` unblockneteasemusic `
20
18
21
19
## 测试服务
@@ -39,6 +37,7 @@ unblockneteasemusic -h
39
37
-k, --kugou Find copyright music on Kugou.
40
38
-d, --dongting Find copyright music on TianTianDongTing.
41
39
-q, --qq Find copyright music on QQ Music.
40
+ -r, --rewrite-url Rewrite music download url, let client download file through proxy.
42
41
```
43
42
44
43
## OSX 用户
@@ -83,54 +82,7 @@ server {
83
82
84
83
# 搭建自己的代理服务器
85
84
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 分支。
134
86
135
87
# 预览
136
88
You can’t perform that action at this time.
0 commit comments