404页面
This commit is contained in:
31
.vuepress/theme/layouts/404.vue
Normal file
31
.vuepress/theme/layouts/404.vue
Normal file
@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<div class="theme-container">
|
||||
<div class="theme-default-content">
|
||||
<h1>404</h1>
|
||||
<blockquote>{{ getMsg() }}</blockquote>
|
||||
<router-link to="/">返回首页</router-link>
|
||||
<p>
|
||||
<a href="/">
|
||||
<img src="/images/logo-main.png" style="max-width: 450px;"></img>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
const msgs = [
|
||||
`您要找的页面不存在`,
|
||||
`糟糕,是不是 url 写错了?`,
|
||||
`链接错误,跟群主说一下吧:)`,
|
||||
`也许此链接已被删除了吧?`
|
||||
]
|
||||
|
||||
export default {
|
||||
methods: {
|
||||
getMsg () {
|
||||
return msgs[Math.floor(Math.random() * msgs.length)]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@ -6,8 +6,12 @@ server {
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
error_page 404 500 502 503 504 /404.html;
|
||||
location /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
location /404.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ meta:
|
||||
| 非Root<br />runAsNonRoot | boolean | 如果为 true,则 kubernetes 在运行容器之前将执行检查,以确保容器进程不是以 root 用户(UID为0)运行,否则将不能启动容器;如果此字段不设置或者为 false,则不执行此检查。<font color="grey">该字段也可以在容器的 securityContext 中设定,如果 Pod 和容器的 securityContext 中都设定了这个字段,则对该容器来说以容器中的设置为准。</font> |
|
||||
| 用户<br />runAsUser | integer | 执行容器 entrypoint 进程的 UID。默认为镜像元数据中定义的用户(dockerfile 中通过 USER 指令指定)。<font color="grey">该字段也可以在容器的 securityContext 中设定,如果 Pod 和容器的 securityContext 中都设定了这个字段,则对该容器来说以容器中的设置为准。</font> |
|
||||
| 用户组<br />runAsGroup | integer | 执行容器 entrypoint 进程的 GID。默认为 docker 引擎的 GID。<font color="grey">该字段也可以在容器的 securityContext 中设定,如果 Pod 和容器的 securityContext 中都设定了这个字段,则对该容器来说以容器中的设置为准。</font> |
|
||||
| fsGroup | integer | 一个特殊的补充用户组,将被应用到 Pod 中所有容器。某些类型的数据卷允许 Kubelete 修改数据卷的 ownership:<br />1. 修改后的 GID 取值来自于 fsGroup<br />2. setgid 标记位被设为 1(此时,数据卷中新创建的文件 owner 为 fsGroup)<br />3. permission 标记将与 `rw-rw----` 执行或运算<br />如果该字段不设置,kubelete 将不会修改数据卷的 ownership 和 permission |
|
||||
| fsGroup | integer | 一个特殊的补充用户组,将被应用到 Pod 中所有容器。某些类型的数据卷允许 kubelet 修改数据卷的 ownership:<br />1. 修改后的 GID 取值来自于 fsGroup<br />2. setgid 标记位被设为 1(此时,数据卷中新创建的文件 owner 为 fsGroup)<br />3. permission 标记将与 `rw-rw----` 执行或运算<br />如果该字段不设置,kubelete 将不会修改数据卷的 ownership 和 permission |
|
||||
| 补充用户组<br />supplementalGroups | integer | 该列表中的用户组将被作为容器的主 GID 的补充,添加到 Pod 中容器的 enrtypoint 进程。可以不设置。 |
|
||||
| seLinuxOptions | Object | 此字段设定的 SELinux 上下文将被应用到 Pod 中所有容器。如果不指定,容器引擎将为每个容器分配一个随机的 SELinux 上下文。<font color="grey">该字段也可以在容器的 securityContext 中设定,如果 Pod 和容器的 securityContext 中都设定了这个字段,则对该容器来说以容器中的设置为准。</font> |
|
||||
| sysctls | Array | 该列表中的所有 sysctl 将被应用到 Pod 中的容器。如果定义了容器引擎不支持的 sysctl,Pod 启动将会失败 |
|
||||
|
||||
13
package-lock.json
generated
13
package-lock.json
generated
@ -10860,11 +10860,6 @@
|
||||
"resolved": "https://registry.npm.taobao.org/slash/download/slash-2.0.0.tgz",
|
||||
"integrity": "sha1-3lUoUaF1nfOo8gZTVEL17E3eq0Q="
|
||||
},
|
||||
"smoothscroll-polyfill": {
|
||||
"version": "0.4.4",
|
||||
"resolved": "https://registry.npm.taobao.org/smoothscroll-polyfill/download/smoothscroll-polyfill-0.4.4.tgz",
|
||||
"integrity": "sha1-OiWRMdxpMObKgAA+HLA7YDtpq/g="
|
||||
},
|
||||
"snapdragon": {
|
||||
"version": "0.8.2",
|
||||
"resolved": "https://registry.npm.taobao.org/snapdragon/download/snapdragon-0.8.2.tgz",
|
||||
@ -12170,14 +12165,6 @@
|
||||
"sitemap": "^2.0.1"
|
||||
}
|
||||
},
|
||||
"vuepress-plugin-smooth-scroll": {
|
||||
"version": "0.0.4",
|
||||
"resolved": "https://registry.npm.taobao.org/vuepress-plugin-smooth-scroll/download/vuepress-plugin-smooth-scroll-0.0.4.tgz",
|
||||
"integrity": "sha1-ZEcilHbmBO+L1usqVtN3xpdKPY4=",
|
||||
"requires": {
|
||||
"smoothscroll-polyfill": "^0.4.4"
|
||||
}
|
||||
},
|
||||
"watchpack": {
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npm.taobao.org/watchpack/download/watchpack-1.6.0.tgz?cache=0&sync_timestamp=1562782917067&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fwatchpack%2Fdownload%2Fwatchpack-1.6.0.tgz",
|
||||
|
||||
@ -26,7 +26,6 @@
|
||||
"npm": "^6.11.3",
|
||||
"reduce-css-calc": "^2.1.6",
|
||||
"vuepress": "^1.1.0",
|
||||
"vuepress-plugin-named-chunks": "^1.0.2",
|
||||
"vuepress-plugin-smooth-scroll": "0.0.4"
|
||||
"vuepress-plugin-named-chunks": "^1.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user