From 6d6fd9a88c415d6e5c64470ee97dff826a1a4dbe 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 | 1 + docker/nginx.conf.example | 31 ------------------------------- 2 files changed, 1 insertion(+), 31 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8e663e5..0930218 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,6 +7,7 @@ services: volumes: - /etc/localtime:/etc/localtime:ro - /etc/timezone:/etc/timezone:ro + - ./docker/nginx.conf.example:/etc/nginx/conf.d/default.conf:ro ports: - 80:80 restart: always diff --git a/docker/nginx.conf.example b/docker/nginx.conf.example index 4eafa7b..3d849b0 100644 --- a/docker/nginx.conf.example +++ b/docker/nginx.conf.example @@ -27,34 +27,3 @@ server { proxy_pass http://localhost:3000/; } } - -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'; - } -}