Browse Source

feat: 取消 HTTP 模式下申请证书的 Openresty 端口校验 (#2272)

pull/2276/head
zhengkunwang 1 year ago committed by GitHub
parent
commit
65662b2e84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      backend/app/service/website_ssl.go
  2. 1
      backend/i18n/lang/en.yaml
  3. 1
      backend/i18n/lang/zh-Hant.yaml
  4. 1
      backend/i18n/lang/zh.yaml

3
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
}

1
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"

1
backend/i18n/lang/zh-Hant.yaml

@ -77,7 +77,6 @@ ErrSSLKeyNotFound: '私鑰文件不存在'
ErrSSLCertificateNotFound: '證書文件不存在'
ErrSSLKeyFormat: '私鑰文件校驗錯誤'
ErrSSLCertificateFormat: '證書文件格式錯誤,請使用 pem 格式'
ErrOpenrestyPort: 'openresty 默認端口為 {{ .detail }},無法使用 HTTP 模式!'
#mysql
ErrUserIsExist: "當前用戶已存在,請重新輸入"

1
backend/i18n/lang/zh.yaml

@ -77,7 +77,6 @@ ErrSSLKeyNotFound: '私钥文件不存在'
ErrSSLCertificateNotFound: '证书文件不存在'
ErrSSLKeyFormat: '私钥文件校验失败'
ErrSSLCertificateFormat: '证书文件格式错误,请使用 pem 格式'
ErrOpenrestyPort: 'openresty 默认端口为 {{ .detail }},无法使用 HTTP 模式!'
#mysql
ErrUserIsExist: "当前用户已存在,请重新输入"

Loading…
Cancel
Save