nondanee / UnblockNeteaseMusic

Revive unavailable songs for Netease Cloud Music
MIT License
17.42k stars 2.52k forks source link

Linux 1.2.1客户端 本地docker+hosts解决 #736

Open MijazzChan opened 3 years ago

MijazzChan commented 3 years ago

需要其他客户端的可以查看: #48

我正在使用的方案是:

{
                    "type": "field",
                    "outboundTag": "netease",
                    "domain": [
                        "music.163.com",
                        "music.126.net"
                    ]
}
{
            "tag": "netease",
            "protocol": "http",
            "settings":{
                "servers": [
                    {
                        "address": "docker.container.ip.or.host",
                        "port": "your.listen.port.here"
                    }
                ]
            },
            "streamSettings": null,
            "mux": null
}

这里的docker需要加RUN CMD参数-p port1:port2 -e https://music.163.com, 且要-v path/to/server.crt:/usr/src/app/server.crt:ro -v path/to/server.key:/usr/src/app/server.key:ro 把证书绑上.

MijazzChan commented 3 years ago

感谢作者 @nondanee 以及各位Contributors.