优化几个内置的页面版本,增加连接信息,方便诊断

This commit is contained in:
GoEdgeLab
2023-08-25 15:03:31 +08:00
parent 219c9a6e19
commit 1f12e49d75
4 changed files with 24 additions and 8 deletions

View File

@@ -54,11 +54,15 @@ Vue.component("http-firewall-actions-box", {
}
var defaultPageBody = `<!DOCTYPE html>
<html>
<html lang="en">
<title>403 Forbidden</title>
\t<style>
\t\taddress { line-height: 1.8; }
\t</style>
<body>
<h1>403 Forbidden</h1>
<address>Request ID: \${requestId}.</address>
<address>Connection: \${remoteAddr} (Client) -&gt; \${serverAddr} (Server)</address>
<address>Request ID: \${requestId}</address>
</body>
</html>`

View File

@@ -71,17 +71,21 @@ Vue.component("http-pages-and-shutdown-box", {
},
addShutdownHTMLTemplate: function () {
this.shutdownConfig.body = `<!DOCTYPE html>
<html>
<html lang="en">
<head>
\t<title>升级中</title>
\t<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
\t<style>
\t\taddress { line-height: 1.8; }
\t</style>
</head>
<body>
<h1>网站升级中</h1>
<p>为了给您提供更好的服务,我们正在升级网站,请稍后重新访问。</p>
<address>Request ID: \${requestId}.</address>
<address>Connection: \${remoteAddr} (Client) -&gt; \${serverAddr} (Server)</address>
<address>Request ID: \${requestId}</address>
</body>
</html>`

View File

@@ -3,17 +3,21 @@ Tea.context(function () {
this.addHTMLTemplate = function () {
this.$refs.htmlBody.value = `<!DOCTYPE html>
<html>
<html lang="en">
<head>
\t<title>\${status} \${statusMessage}</title>
\t<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
\t<style>
\t\taddress { line-height: 1.8; }
\t</style>
</head>
<body>
<h1>\${status} \${statusMessage}</h1>
<p><!-- 内容 --></p>
<address>Request ID: \${requestId}.</address>
<address>Connection: \${remoteAddr} (Client) -&gt; \${serverAddr} (Server)</address>
<address>Request ID: \${requestId}</address>
</body>
</html>`

View File

@@ -10,17 +10,21 @@ Tea.context(function () {
this.addHTMLTemplate = function () {
this.$refs.htmlBody.value = `<!DOCTYPE html>
<html>
<html lang="en">
<head>
\t<title>\${status} \${statusMessage}</title>
\t<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
\t<style>
\t\taddress { line-height: 1.8; }
\t</style>
</head>
<body>
<h1>\${status} \${statusMessage}</h1>
<p><!-- 内容 --></p>
<address>Request ID: \${requestId}.</address>
<address>Connection: \${remoteAddr} (Client) -&gt; \${serverAddr} (Server)</address>
<address>Request ID: \${requestId}</address>
</body>
</html>`