From 65662b2e84787c78ecbaffdbd79f30275b4d625c Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Wed, 13 Sep 2023 15:50:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8F=96=E6=B6=88=20HTTP=20=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=8B=E7=94=B3=E8=AF=B7=E8=AF=81=E4=B9=A6=E7=9A=84?= =?UTF-8?q?=20Openresty=20=E7=AB=AF=E5=8F=A3=E6=A0=A1=E9=AA=8C=20(#2272)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/website_ssl.go | 3 --- backend/i18n/lang/en.yaml | 1 - backend/i18n/lang/zh-Hant.yaml | 1 - backend/i18n/lang/zh.yaml | 1 - 4 files changed, 6 deletions(-) diff --git a/backend/app/service/website_ssl.go b/backend/app/service/website_ssl.go index 947a7a221..2c12b856b 100644 --- a/backend/app/service/website_ssl.go +++ b/backend/app/service/website_ssl.go @@ -115,9 +115,6 @@ func (w WebsiteSSLService) Create(create request.WebsiteSSLCreate) (request.Webs if err != nil { return request.WebsiteSSLCreate{}, err } - if appInstall.HttpPort != 80 { - return request.WebsiteSSLCreate{}, buserr.WithDetail("ErrOpenrestyPort", appInstall.HttpPort, nil) - } if err := client.UseHTTP(path.Join(appInstall.GetPath(), "root")); err != nil { return res, err } diff --git a/backend/i18n/lang/en.yaml b/backend/i18n/lang/en.yaml index 5ece42ddf..7f98ee4bd 100644 --- a/backend/i18n/lang/en.yaml +++ b/backend/i18n/lang/en.yaml @@ -77,7 +77,6 @@ ErrSSLKeyNotFound: 'The private key file does not exist' ErrSSLCertificateNotFound: 'The certificate file does not exist' ErrSSLKeyFormat: 'Private key file verification error' ErrSSLCertificateFormat: 'Certificate file format error, please use pem format' -ErrOpenrestyPort: 'The default port of openresty is {{ .detail }}, HTTP mode cannot be used!' #mysql ErrUserIsExist: "The current user already exists. Please enter a new user" diff --git a/backend/i18n/lang/zh-Hant.yaml b/backend/i18n/lang/zh-Hant.yaml index bd1dfe2c5..5372c71b3 100644 --- a/backend/i18n/lang/zh-Hant.yaml +++ b/backend/i18n/lang/zh-Hant.yaml @@ -77,7 +77,6 @@ ErrSSLKeyNotFound: '私鑰文件不存在' ErrSSLCertificateNotFound: '證書文件不存在' ErrSSLKeyFormat: '私鑰文件校驗錯誤' ErrSSLCertificateFormat: '證書文件格式錯誤,請使用 pem 格式' -ErrOpenrestyPort: 'openresty 默認端口為 {{ .detail }},無法使用 HTTP 模式!' #mysql ErrUserIsExist: "當前用戶已存在,請重新輸入" diff --git a/backend/i18n/lang/zh.yaml b/backend/i18n/lang/zh.yaml index ff4fd175d..4b46094b1 100644 --- a/backend/i18n/lang/zh.yaml +++ b/backend/i18n/lang/zh.yaml @@ -77,7 +77,6 @@ ErrSSLKeyNotFound: '私钥文件不存在' ErrSSLCertificateNotFound: '证书文件不存在' ErrSSLKeyFormat: '私钥文件校验失败' ErrSSLCertificateFormat: '证书文件格式错误,请使用 pem 格式' -ErrOpenrestyPort: 'openresty 默认端口为 {{ .detail }},无法使用 HTTP 模式!' #mysql ErrUserIsExist: "当前用户已存在,请重新输入"