From c89de70d872c16916e09e9c937a29c5c8bc0cbd0 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Mon, 5 Dec 2022 12:20:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E7=9A=84=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/nginx/versions/1.23.1/html/index.html | 1 + apps/nginx/versions/1.23.1/root/index.html | 1 + backend/utils/ssl/acme.go | 2 +- frontend/src/api/index.ts | 4 ++-- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 apps/nginx/versions/1.23.1/root/index.html diff --git a/apps/nginx/versions/1.23.1/html/index.html b/apps/nginx/versions/1.23.1/html/index.html index e69de29bb..3c0f411c2 100644 --- a/apps/nginx/versions/1.23.1/html/index.html +++ b/apps/nginx/versions/1.23.1/html/index.html @@ -0,0 +1 @@ +站点创建成功 \ No newline at end of file diff --git a/apps/nginx/versions/1.23.1/root/index.html b/apps/nginx/versions/1.23.1/root/index.html new file mode 100644 index 000000000..370a3277a --- /dev/null +++ b/apps/nginx/versions/1.23.1/root/index.html @@ -0,0 +1 @@ +默认站点 \ No newline at end of file diff --git a/backend/utils/ssl/acme.go b/backend/utils/ssl/acme.go index 26310ee98..da45c78ee 100644 --- a/backend/utils/ssl/acme.go +++ b/backend/utils/ssl/acme.go @@ -90,7 +90,7 @@ func NewPrivateKeyClient(email string, privateKey string) (*AcmeClient, error) { func newConfig(user *AcmeUser) *lego.Config { config := lego.NewConfig(user) - config.CADirURL = "https://acme-v02.api.letsencrypt.org/directory" + config.CADirURL = "https://acme-staging-v02.api.letsencrypt.org/directory" config.UserAgent = "acm_go/0.0.1" config.Certificate.KeyType = certcrypto.RSA2048 return config diff --git a/frontend/src/api/index.ts b/frontend/src/api/index.ts index 6b866deff..3da24343b 100644 --- a/frontend/src/api/index.ts +++ b/frontend/src/api/index.ts @@ -43,7 +43,7 @@ class RequestHttp { globalStore.setCsrfToken(response.headers['x-csrf-token']); } if (data.code == ResultEnum.OVERDUE || data.code == ResultEnum.FORBIDDEN) { - ElMessage.error(data.msg); + ElMessage.error(data.message); router.replace({ path: '/login', }); @@ -63,7 +63,7 @@ class RequestHttp { return data; } if (data.code && data.code !== ResultEnum.SUCCESS) { - ElMessage.error(data.msg); + ElMessage.error(data.message); return Promise.reject(data); } return data;