-
-
diff --git a/backend/server/server.go b/backend/server/server.go index 075639d11..7d67b1575 100644 --- a/backend/server/server.go +++ b/backend/server/server.go @@ -63,11 +63,13 @@ func Start() { *net.TCPListener } if global.CONF.System.SSL == "enable" { - certificate, err := os.ReadFile(path.Join(global.CONF.System.BaseDir, "1panel/secret/server.crt")) + certPath := path.Join(global.CONF.System.BaseDir, "1panel/secret/server.crt") + keyPath := path.Join(global.CONF.System.BaseDir, "1panel/secret/server.key") + certificate, err := os.ReadFile(certPath) if err != nil { panic(err) } - key, err := os.ReadFile(path.Join(global.CONF.System.BaseDir, "1panel/secret/server.key")) + key, err := os.ReadFile(keyPath) if err != nil { panic(err) } @@ -80,7 +82,7 @@ func Start() { } global.LOG.Infof("listen at https://%s:%s [%s]", global.CONF.System.BindAddress, global.CONF.System.Port, tcpItem) - if err := server.ServeTLS(tcpKeepAliveListener{ln.(*net.TCPListener)}, "", ""); err != nil { + if err := server.ServeTLS(tcpKeepAliveListener{ln.(*net.TCPListener)}, certPath, keyPath); err != nil { panic(err) } } else { diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 267db9967..43b419f0f 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -1162,6 +1162,7 @@ const message = { bindDomain: 'Bind Domain', unBindDomain: 'Unbind domain', + panelSSL: 'Panel SSL', unBindDomainHelper: 'The action of unbinding a domain name may cause system insecurity. Do you want to continue?', bindDomainHelper: diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index be3e1198c..a4a14ce72 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -1150,6 +1150,7 @@ const message = { complexityHelper: '開啟後密碼必須滿足密碼長度大於 8 位且包含字母、數字及特殊字符', bindDomain: '域名綁定', unBindDomain: '域名解綁', + panelSSL: '面板 SSL', unBindDomainHelper: '解除域名綁定可能造成系統不安全,是否繼續?', bindDomainHelper: '設置域名綁定後,僅能通過設置中域名訪問 1Panel 服務', bindDomainHelper1: '綁定域名為空時,則取消域名綁定', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 3c5abbc5d..f834dbd49 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -1151,6 +1151,7 @@ const message = { complexityHelper: '开启后密码必须满足密码长度大于 8 位且包含字母、数字及特殊字符', bindDomain: '域名绑定', unBindDomain: '域名解绑', + panelSSL: '面板 SSL', unBindDomainHelper: '解除域名绑定可能造成系统不安全,是否继续?', bindDomainHelper: '设置域名绑定后,仅能通过设置中域名访问 1Panel 服务', bindDomainHelper1: '绑定域名为空时,则取消域名绑定', diff --git a/frontend/src/views/cronjob/record/index.vue b/frontend/src/views/cronjob/record/index.vue index c3b0fba81..806f2f233 100644 --- a/frontend/src/views/cronjob/record/index.vue +++ b/frontend/src/views/cronjob/record/index.vue @@ -126,41 +126,39 @@