update docs
parent
3429e18b47
commit
0c22c0cd39
|
@ -70,6 +70,8 @@
|
||||||
*.pdf binary
|
*.pdf binary
|
||||||
*.doc binary
|
*.doc binary
|
||||||
*.docx binary
|
*.docx binary
|
||||||
|
*.ppt binary
|
||||||
|
*.pptx binary
|
||||||
*.xls binary
|
*.xls binary
|
||||||
*.xlsx binary
|
*.xlsx binary
|
||||||
*.xmind binary
|
*.xmind binary
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<div align="center"><img width="100px" src="http://dunwu.test.upcdn.net/common/logo/zp.png"/></div>
|
<div align="center"><img width="100px" src="http://dunwu.test.upcdn.net/common/logo/zp.png"/></div>
|
||||||
|
|
||||||
# nginx-tutorial
|
# nginx-tutorial
|
||||||
|
|
||||||
> Nginx 极简教程
|
> Nginx 极简教程
|
||||||
|
|
368
docs/index.html
368
docs/index.html
|
@ -1,214 +1,214 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8"/>
|
<meta charset="UTF-8"/>
|
||||||
<title>Nginx Tutorial</title>
|
<title>Nginx Tutorial</title>
|
||||||
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/>
|
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/>
|
||||||
<meta content="Nginx Tutorial" name="description"/>
|
<meta content="Nginx Tutorial" name="description"/>
|
||||||
<meta
|
<meta
|
||||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
|
||||||
name="viewport"
|
name="viewport"
|
||||||
/>
|
/>
|
||||||
<link href="http://dunwu.test.upcdn.net/common/logo/zp_50_50.png" rel="icon" type="image/x-icon"/>
|
<link href="http://dunwu.test.upcdn.net/common/logo/zp_50_50.png" rel="icon" type="image/x-icon"/>
|
||||||
<link href="//unpkg.com/docsify/lib/themes/vue.css" rel="stylesheet" title="vue"/>
|
<link href="//unpkg.com/docsify/lib/themes/vue.css" rel="stylesheet" title="vue"/>
|
||||||
<style>
|
<style>
|
||||||
h1 + ul {
|
h1 + ul {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content img,
|
.content img,
|
||||||
.sidebar img {
|
.sidebar img {
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
box-shadow: 0 0 8px grey;
|
box-shadow: 0 0 8px grey;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content,
|
.content,
|
||||||
.sidebar,
|
.sidebar,
|
||||||
.sidebar-toggle,
|
.sidebar-toggle,
|
||||||
body,
|
body,
|
||||||
.search input {
|
.search input {
|
||||||
color: #6B615F !important;
|
color: #6B615F !important;
|
||||||
background-color: #FFF4E6 !important;
|
background-color: #FFF4E6 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content strong,
|
.content strong,
|
||||||
.sidebar strong,
|
.sidebar strong,
|
||||||
body strong {
|
body strong {
|
||||||
color: #5C5869 !important;
|
color: #5C5869 !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
.cover-main .anchor span {
|
.cover-main .anchor span {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-image: -webkit-linear-gradient(left, #FFDCB4, #B96972 25%, #E88A57 50%, #804170 75%, #A596CD);
|
background-image: -webkit-linear-gradient(left, #FFDCB4, #B96972 25%, #E88A57 50%, #804170 75%, #A596CD);
|
||||||
-webkit-text-fill-color: transparent;
|
-webkit-text-fill-color: transparent;
|
||||||
-webkit-background-clip: text;
|
-webkit-background-clip: text;
|
||||||
-webkit-background-size: 200% 100%;
|
-webkit-background-size: 200% 100%;
|
||||||
-webkit-animation: masked-animation 1.5s infinite linear;
|
-webkit-animation: masked-animation 1.5s infinite linear;
|
||||||
font-family: "Brush Script MT", 隶书, serif;
|
font-family: "Brush Script MT", 隶书, serif;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cover-main blockquote p {
|
.cover-main blockquote p {
|
||||||
color: #5C5869;
|
color: #5C5869;
|
||||||
font-family: "Arial", 隶书, serif;
|
font-family: "Arial", 隶书, serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cover-main ul a:hover {
|
.cover-main ul a:hover {
|
||||||
color: #FE4165 !important;
|
color: #FE4165 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cover-main p a:hover {
|
.cover-main p a:hover {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-image: -webkit-linear-gradient(left, #FFDCB4, #B96972 25%, #E88A57 50%, #804170 75%, #A596CD);
|
background-image: -webkit-linear-gradient(left, #FFDCB4, #B96972 25%, #E88A57 50%, #804170 75%, #A596CD);
|
||||||
-webkit-text-fill-color: transparent;
|
-webkit-text-fill-color: transparent;
|
||||||
-webkit-background-clip: text;
|
-webkit-background-clip: text;
|
||||||
-webkit-background-size: 200% 100%;
|
-webkit-background-size: 200% 100%;
|
||||||
-webkit-animation: masked-animation 1.5s infinite linear;
|
-webkit-animation: masked-animation 1.5s infinite linear;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* content 样式内容 */
|
/* content 样式内容 */
|
||||||
.sidebar a,
|
.sidebar a,
|
||||||
.content a {
|
.content a {
|
||||||
color: #399AB2 !important;
|
color: #399AB2 !important;
|
||||||
text-decoration: none !important;
|
text-decoration: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar a:hover,
|
.sidebar a:hover,
|
||||||
.content a:hover {
|
.content a:hover {
|
||||||
color: #FE4165 !important;
|
color: #FE4165 !important;
|
||||||
text-decoration: underline !important;
|
text-decoration: underline !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content h1 :hover,
|
.content h1 :hover,
|
||||||
.content h2 :hover,
|
.content h2 :hover,
|
||||||
.content h3 :hover,
|
.content h3 :hover,
|
||||||
.content h4 :hover {
|
.content h4 :hover {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-image: -webkit-linear-gradient(left, #FFDCB4, #B96972 25%, #E88A57 50%, #804170 75%, #A596CD);
|
background-image: -webkit-linear-gradient(left, #FFDCB4, #B96972 25%, #E88A57 50%, #804170 75%, #A596CD);
|
||||||
-webkit-text-fill-color: transparent;
|
-webkit-text-fill-color: transparent;
|
||||||
-webkit-background-clip: text;
|
-webkit-background-clip: text;
|
||||||
-webkit-background-size: 200% 100%;
|
-webkit-background-size: 200% 100%;
|
||||||
-webkit-animation: masked-animation 1.5s infinite linear;
|
-webkit-animation: masked-animation 1.5s infinite linear;
|
||||||
font-family: "微软雅黑", serif;
|
font-family: "微软雅黑", serif;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
@-webkit-keyframes masked-animation {
|
@-webkit-keyframes masked-animation {
|
||||||
0% {
|
0% {
|
||||||
background-position: 0 0;
|
background-position: 0 0;
|
||||||
}
|
}
|
||||||
100% {
|
100% {
|
||||||
background-position: -100% 0;
|
background-position: -100% 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.content h1 a,
|
.content h1 a,
|
||||||
.content h1 span {
|
.content h1 span {
|
||||||
color: #399AB2 !important;
|
color: #399AB2 !important;
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
text-shadow: 2px 2px 5px grey;
|
text-shadow: 2px 2px 5px grey;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content h2 a,
|
.content h2 a,
|
||||||
.content h2 span {
|
.content h2 span {
|
||||||
color: #60497C !important;
|
color: #60497C !important;
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
text-shadow: 2px 2px 5px grey;
|
text-shadow: 2px 2px 5px grey;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content h3 a,
|
.content h3 a,
|
||||||
.content h3 span {
|
.content h3 span {
|
||||||
color: #346093 !important;
|
color: #346093 !important;
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
text-shadow: 2px 2px 5px grey;
|
text-shadow: 2px 2px 5px grey;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content h4 a,
|
.content h4 a,
|
||||||
.content h4 span {
|
.content h4 span {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color: #78943A;
|
color: #78943A;
|
||||||
text-shadow: 2px 2px 5px grey;
|
text-shadow: 2px 2px 5px grey;
|
||||||
}
|
}
|
||||||
|
|
||||||
img.emoji {
|
img.emoji {
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
.content > p {
|
.content > p {
|
||||||
font-size: 16px !important;
|
font-size: 16px !important;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content blockquote {
|
.content blockquote {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 0 16px;
|
padding: 0 16px;
|
||||||
border-left: 8px solid #DDDFE4;
|
border-left: 8px solid #DDDFE4;
|
||||||
background: #FFF2C9;
|
background: #FFF2C9;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content pre {
|
.content pre {
|
||||||
padding-left: 0 !important;
|
padding-left: 0 !important;
|
||||||
padding-right: 0 !important;
|
padding-right: 0 !important;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
box-shadow: 1px 1px 20px 3px #DDDDDD !important;
|
box-shadow: 1px 1px 20px 3px #DDDDDD !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content code {
|
.content code {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
box-shadow: 1px 1px 1px whitesmoke;
|
box-shadow: 1px 1px 1px whitesmoke;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content table {
|
.content table {
|
||||||
display: table;
|
display: table;
|
||||||
padding-left: 0 !important;
|
padding-left: 0 !important;
|
||||||
padding-right: 0 !important;
|
padding-right: 0 !important;
|
||||||
box-shadow: 2px 2px 20px 6px #DDDDDD !important;
|
box-shadow: 2px 2px 20px 6px #DDDDDD !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content th {
|
.content th {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
background-color: #CCE6B6;
|
background-color: #CCE6B6;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
@media (min-width: 600px) {
|
@media (min-width: 600px) {
|
||||||
.markdown-section pre > code {
|
.markdown-section pre > code {
|
||||||
font-size: 0.9rem !important;
|
font-size: 0.9rem !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
.markdown-section pre > code {
|
.markdown-section pre > code {
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre:after {
|
pre:after {
|
||||||
content: "" !important;
|
content: "" !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 600px) {
|
@media (min-width: 600px) {
|
||||||
pre code {
|
pre code {
|
||||||
padding-left: 20px !important;
|
padding-left: 20px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
pre {
|
pre {
|
||||||
padding-left: 0px !important;
|
padding-left: 0px !important;
|
||||||
padding-right: 0px !important;
|
padding-right: 0px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app">正在加载...</div>
|
<div id="app">正在加载...</div>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
"name": "nginx-tutorial",
|
"name": "nginx-tutorial",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "docsify serve ./ --port 4000"
|
"start": "docsify serve ./ --port 4000"
|
||||||
},
|
},
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"devDependencies": {}
|
"devDependencies": {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ import java.util.TreeSet;
|
||||||
* 配合前端请求的 API 接口
|
* 配合前端请求的 API 接口
|
||||||
*
|
*
|
||||||
* @author zhangpeng0913
|
* @author zhangpeng0913
|
||||||
* @date 2017/8/23.
|
* @since 2017/8/23.
|
||||||
*/
|
*/
|
||||||
@Controller
|
@Controller
|
||||||
public class ApiController {
|
public class ApiController {
|
||||||
|
|
|
@ -10,7 +10,7 @@ import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Zhang Peng
|
* @author Zhang Peng
|
||||||
* @date 2017/4/12.
|
* @since 2017/4/12.
|
||||||
*/
|
*/
|
||||||
@Controller
|
@Controller
|
||||||
public class IndexController {
|
public class IndexController {
|
||||||
|
|
Loading…
Reference in New Issue