Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unblock-netease-music

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unblock-netease-music

A proxy server for Netease Music...

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-65.22%
Maintainers
1
Weekly downloads
 
Created
Source

UnblockNeteaseMusic

A proxy server for Netease Music...

Dependencies

  1. Node.js 4.x+

How to use

  1. npm install unblock-netease-music -g
  2. unblockneteasemusic

Configuration

unblockneteasemusic -h

  Usage: unblockneteasemusic [options]

  Options:

    -h, --help           output usage information
    -p, --port <port>    Specific server port.
    -f, --force-ip <ip>  Force the netease server ip.

Windows users (fixed)

Just simply change your proxy to 127.0.0.1:8123 and restart client.

Others (reverse proxy by nginx)

  1. Install nginx.
  2. Create a new vhost with the conf file below.
  3. Start nginx.
  4. Add a line into /etc/hosts 127.0.0.1 music.163.com

Nginx conf file

server {
    listen 80;
    server_name music.163.com;

    location / {
        proxy_pass http://127.0.0.1:8123;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Accept-Encoding "";
    }
}

Build your own proxy server

  1. Install nginx and Node.js
  2. Nginx conf file
server {
    listen 80;
    server_name music.163.com;

    location / {
        if ($http_host !~* ^(music.163.com)$){
            return 500;
        }
        proxy_pass http://localhost:8123;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Accept-Encoding "";
    }
}
  1. Setup sniproxy
user daemon
pidfile /var/run/sniproxy.pid

error_log {
    syslog daemon
    priority notice
}

listen <YOUR_SERVER_IP>:443 {
    proto tls
    table https_hosts

    access_log {
        filename /var/log/sniproxy/https_access.log
        priority notice
    }
    fallback 127.0.0.1:443
}

table https_hosts {
    music.163.com 223.252.199.7:443
}
  1. Install proxy server with command sudo npm install unblock-netease-music -g
  2. Run proxy server unblockneteasemusic.
  3. Done!

Preview

Thanks

  1. This project is based on EraserKing's CloudMusicGear.
  2. Thanks for yanunon's API documents.
  3. Thanks for Chion82's conf files.

License

GPLv3

Keywords

FAQs

Package last updated on 21 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc