From dc1e0aaf90c738bed7fd29d6b3a7bfd487a796f2 Mon Sep 17 00:00:00 2001 From: colawithsauce Date: Sat, 9 Dec 2023 00:28:00 +0800 Subject: [PATCH] Make docker works --- docker-compose.yml | 7 +++++-- docker/nginx.conf.example | 33 ++++++++++++++++++++++++++++++++- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d9bc685..8e663e5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,7 +19,10 @@ services: UnblockNeteaseMusic: image: pan93412/unblock-netease-music-enhanced - command: -o bilibili kugou kuwo pyncmd -p 80:443 -f 59.111.19.99 + command: -o kugou kuwo migu bilibili pyncmd -p 80:443 -f 45.127.129.53 -e - + # environment: + # JSON_LOG: true + # LOG_LEVEL: debug networks: my_network: aliases: @@ -32,4 +35,4 @@ services: networks: my_network: - driver: bridge \ No newline at end of file + driver: bridge diff --git a/docker/nginx.conf.example b/docker/nginx.conf.example index 697d437..4eafa7b 100644 --- a/docker/nginx.conf.example +++ b/docker/nginx.conf.example @@ -26,4 +26,35 @@ server { proxy_pass http://localhost:3000/; } -} \ No newline at end of file +} + +server { + listen 0.0.0.0:80; + server_name music.163.com interface.music.163.com interface3.music.163.com; + + location / { + proxy_pass http://UnblockNeteaseMusic:80; + proxy_set_header HOST 'music.163.com'; + } +} + +server { + listen 0.0.0.0:443 ssl; + server_name music.163.com interface.music.163.com interface3.music.163.com; + + # ssl on; + # ssl_certificate /etc/nginx/ssl/163/server.crt; + # ssl_certificate_key /etc/nginx/ssl/163/server.key; + + # ssl_session_timeout 10m; + # ssl_session_cache shared:SSL:10m; + + # ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + # ssl_ciphers 'AES128+EECDH:AES128+EDH'; + # ssl_prefer_server_ciphers on; + + location / { + proxy_pass https://UnblockNeteaseMusic:443; + proxy_set_header HOST 'music.163.com'; + } +}