From 53756c382d3e7c69b95409aaae0bb92f975190fb Mon Sep 17 00:00:00 2001 From: zhengkunwang223 <31820853+zhengkunwang223@users.noreply.github.com> Date: Mon, 22 May 2023 11:03:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8F=96=E6=B6=88=E7=BD=91=E7=AB=99=20?= =?UTF-8?q?ipv6=20=E7=9A=84=E9=BB=98=E8=AE=A4=E8=AE=BE=E7=BD=AE=20(#1099)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/website_utils.go | 3 --- cmd/server/nginx_conf/website_default.conf | 2 -- 2 files changed, 5 deletions(-) diff --git a/backend/app/service/website_utils.go b/backend/app/service/website_utils.go index 8f7e6f335..1193b22cf 100644 --- a/backend/app/service/website_utils.go +++ b/backend/app/service/website_utils.go @@ -372,7 +372,6 @@ func applySSL(website model.Website, websiteSSL model.WebsiteSSL, req request.We config := nginxFull.SiteConfig.Config server := config.FindServers()[0] server.UpdateListen("443", website.DefaultServer, "ssl") - server.UpdateListen("[::]:443", website.DefaultServer, "ssl") switch req.HttpConfig { case constant.HTTPSOnly: @@ -381,11 +380,9 @@ func applySSL(website model.Website, websiteSSL model.WebsiteSSL, req request.We server.RemoveDirective("if", []string{"($scheme"}) case constant.HTTPToHTTPS: server.UpdateListen("80", website.DefaultServer) - server.UpdateListen("[::]:80", website.DefaultServer) server.AddHTTP2HTTPS() case constant.HTTPAlso: server.UpdateListen("80", website.DefaultServer) - server.UpdateListen("[::]:80", website.DefaultServer) server.RemoveDirective("if", []string{"($scheme"}) } diff --git a/cmd/server/nginx_conf/website_default.conf b/cmd/server/nginx_conf/website_default.conf index 78590efcb..d73b00817 100644 --- a/cmd/server/nginx_conf/website_default.conf +++ b/cmd/server/nginx_conf/website_default.conf @@ -1,7 +1,5 @@ server { listen 80; - listen [::]:80; - server_name ko.wp-1.com; index index.php index.html index.htm default.php default.htm default.html;