0%
在线音乐播放器(网易云,暂无法解锁)
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| 安装Nodejs环境 apt install nodejs npm -y apt install git -y apt install wget -y git clone https://github.com/Binaryify/NeteaseCloudMusicApi.git cd NeteaseCloudMusicApi npm install
安装pm2 wget -qO- https://getpm2.com/install.sh | bash pm2 start app.js pm2 startup pm2 save
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| cd .. git clone https://github.com/qier222/YesPlayMusic.git
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update sudo apt-get install yarn
cd YesPlayMusic yarn install
cp .env.example .env 将127.0.0.1改为你的域名 若反代则修改为https 例如: VUE_APP_NETEASE_API_URL=https://你的网站/api VUE_APP_ELECTRON_API_URL=/api VUE_APP_ELECTRON_API_URL_DEV=https://你的网站/api VUE_APP_ENABLE_SENTRY=false DEV_SERVER_PORT=20201
yarn run build
剩下的参考sub篇nginx
|
Nginx分配置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| server { listen 80; server_name 你的网站; rewrite ^(.*)$ https://$host$1 permanent; } server { listen 443 ssl; server_name 你的网站; ssl_certificate /etc/ssl/你的网站.cer; ssl_certificate_key /etc/ssl/你的网站.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers TLS13-AES-256-GCM-SHA384:TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-128-GCM-SHA256:TLS13-AES-128-CCM-8-SHA256:TLS13-AES-128-CCM-SHA256:EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5; ssl_prefer_server_ciphers on; ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m; location / { root /usr/share/nginx/dist; try_files $uri $uri/ /index.html; } location /api { rewrite ^.+api/?(.*)$ /$1 break; add_header Cache-Control no-cache; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_pass http://127.0.0.1:3000; proxy_connect_timeout 30s; } }
|