feat: add baseUrl in documents service
This commit is contained in:
parent
7340e60038
commit
ca6594a486
13 changed files with 5106 additions and 10759 deletions
|
@ -60,4 +60,4 @@ WAF 是 Web Application Firewall 的缩写,也被称为 Web 应用防火墙。
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
详情查看 **[雷池技术架构](/docs/about/framework)**
|
详情查看 **[雷池技术架构](/about/framework)**
|
|
@ -19,7 +19,7 @@ title: "安装雷池"
|
||||||
bash -c "$(curl -fsSLk https://waf-ce.chaitin.cn/release/latest/setup.sh)"
|
bash -c "$(curl -fsSLk https://waf-ce.chaitin.cn/release/latest/setup.sh)"
|
||||||
```
|
```
|
||||||
|
|
||||||
**若安装失败,请参考 [安装问题](/docs/faq/install)**
|
**若安装失败,请参考 [安装问题](/faq/install)**
|
||||||
|
|
||||||
### 在线安装演示
|
### 在线安装演示
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ echo "SUBNET_PREFIX=172.22.222" >> .env
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
**若安装失败,请参考 [安装问题](/docs/faq/install)**
|
**若安装失败,请参考 [安装问题](/faq/install)**
|
||||||
|
|
||||||
### 离线安装演示
|
### 离线安装演示
|
||||||
|
|
||||||
|
@ -129,6 +129,6 @@ style={{ width: '100%', height: '350px' }}
|
||||||
|
|
||||||
## 常见安装问题
|
## 常见安装问题
|
||||||
|
|
||||||
请参考 [安装问题](/docs/faq/install)
|
请参考 [安装问题](/faq/install)
|
||||||
|
|
||||||
下一步请参考 [登录雷池](/docs/guide/login)
|
下一步请参考 [登录雷池](/guide/login)
|
|
@ -24,5 +24,5 @@ style={{ width: '100%', height: '350px' }}
|
||||||
|
|
||||||
## 常见登录问题
|
## 常见登录问题
|
||||||
|
|
||||||
请参考 [登录问题](/docs/faq/login)
|
请参考 [登录问题](/faq/login)
|
||||||
|
|
||||||
|
|
|
@ -117,7 +117,7 @@ title: "配置站点"
|
||||||
|
|
||||||
## 常见配置问题
|
## 常见配置问题
|
||||||
|
|
||||||
请参考 [配置问题](/docs/faq/config)
|
请参考 [配置问题](/faq/config)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ title: "测试防护"
|
||||||
> 主机名可以是雷池的 IP,也可以是网站的域名(确保域名已经解析到雷池)
|
> 主机名可以是雷池的 IP,也可以是网站的域名(确保域名已经解析到雷池)
|
||||||
> 端口是你在雷池页面中配置的网站端口
|
> 端口是你在雷池页面中配置的网站端口
|
||||||
|
|
||||||
若网站访问不正常,请参考 [配置问题](/docs/03-faq/03-config.md)。
|
若网站访问不正常,请参考 [配置问题](/03-faq/03-config.md)。
|
||||||
|
|
||||||
## 尝试手动模拟攻击
|
## 尝试手动模拟攻击
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ title: "测试防护"
|
||||||
通过浏览器,你将会看到雷池已经发现并阻断了攻击请求。
|
通过浏览器,你将会看到雷池已经发现并阻断了攻击请求。
|
||||||

|

|
||||||
|
|
||||||
若请求没有被阻断,请参考 [防护问题](/docs/03-faq/04-test.md)
|
若请求没有被阻断,请参考 [防护问题](/03-faq/04-test.md)
|
||||||
|
|
||||||
## 自动化测试防护效果
|
## 自动化测试防护效果
|
||||||
|
|
||||||
|
@ -73,4 +73,4 @@ sending 100% |██████████████████████
|
||||||
|
|
||||||
## 常见防护问题
|
## 常见防护问题
|
||||||
|
|
||||||
请参考 [防护问题](/docs/faq/test)
|
请参考 [防护问题](/faq/test)
|
||||||
|
|
|
@ -21,10 +21,10 @@ title: "配置其他"
|
||||||
|
|
||||||
### 人机验证
|
### 人机验证
|
||||||
|
|
||||||
详情查看 [人机验证2.0](/docs/about/challenge)
|
详情查看 [人机验证2.0](/about/challenge)
|
||||||
|
|
||||||
### 语义分析
|
### 语义分析
|
||||||
详情查看 [语义分析检测算法](/docs/about/syntaxanalysis)
|
详情查看 [语义分析检测算法](/about/syntaxanalysis)
|
||||||
|
|
||||||
## 通用配置
|
## 通用配置
|
||||||
|
|
||||||
|
@ -72,4 +72,4 @@ title: "配置其他"
|
||||||
|
|
||||||
## 常见配置问题
|
## 常见配置问题
|
||||||
|
|
||||||
请参考 [其他问题](/docs/faq/other)
|
请参考 [其他问题](/faq/other)
|
|
@ -6,7 +6,7 @@ title: "升级雷池"
|
||||||
|
|
||||||
**注意**: 升级雷池时服务会重启,流量会中断一小段时间,根据业务情况选择合适的时间来执行升级操作。
|
**注意**: 升级雷池时服务会重启,流量会中断一小段时间,根据业务情况选择合适的时间来执行升级操作。
|
||||||
|
|
||||||
[版本更新记录](/docs/about/changelog)
|
[版本更新记录](/about/changelog)
|
||||||
|
|
||||||
## 在线升级
|
## 在线升级
|
||||||
|
|
||||||
|
@ -62,4 +62,4 @@ docker compose up -d
|
||||||
|
|
||||||
## 常见升级问题
|
## 常见升级问题
|
||||||
|
|
||||||
请参考 [升级问题](/docs/faq/upgrade)
|
请参考 [升级问题](/faq/upgrade)
|
|
@ -13,13 +13,13 @@ title: "安装问题"
|
||||||
|
|
||||||
2. 检测配置是否符合最低的配置要求
|
2. 检测配置是否符合最低的配置要求
|
||||||
|
|
||||||
> 参考 [环境检测](/docs/guide/install#环境检测) 方式
|
> 参考 [环境检测](/guide/install#环境检测) 方式
|
||||||
|
|
||||||
3. 如果连接 Docker Hub 网络不稳,导致镜像下载失败(超时):
|
3. 如果连接 Docker Hub 网络不稳,导致镜像下载失败(超时):
|
||||||
|
|
||||||
>docker hub 默认使用国外节点拉取镜像,可以自行搜索配置国内镜像加速源
|
>docker hub 默认使用国外节点拉取镜像,可以自行搜索配置国内镜像加速源
|
||||||
|
|
||||||
>采用 [离线安装](/docs/guide/install#离线安装) 方式
|
>采用 [离线安装](/guide/install#离线安装) 方式
|
||||||
|
|
||||||
|
|
||||||
## 安装时遇到报错处理方法
|
## 安装时遇到报错处理方法
|
||||||
|
|
|
@ -4,7 +4,7 @@ title: "版本更新记录"
|
||||||
|
|
||||||
# 版本更新记录
|
# 版本更新记录
|
||||||
|
|
||||||
[版本升级方法](/docs/guide/upgrade)
|
[版本升级方法](/guide/upgrade)
|
||||||
|
|
||||||
### [3.12.2] - 2023-11-17
|
### [3.12.2] - 2023-11-17
|
||||||
|
|
||||||
|
@ -138,12 +138,12 @@ title: "版本更新记录"
|
||||||
### [3.6.4] - 2023-10-09
|
### [3.6.4] - 2023-10-09
|
||||||
|
|
||||||
#### 修复
|
#### 修复
|
||||||
|
|
||||||
- 修复了多个域名申请免费证书失败的问题
|
- 修复了多个域名申请免费证书失败的问题
|
||||||
- 修复了有时候不能创建 HTTP 站点的问题
|
- 修复了有时候不能创建 HTTP 站点的问题
|
||||||
- 修复证书管理中,“使用站点” 不全的问题
|
- 修复证书管理中,“使用站点” 不全的问题
|
||||||
- 修复证书管理中,泛域名证书的使用站点始终提示 “域名不匹配” 的问题
|
- 修复证书管理中,泛域名证书的使用站点始终提示 “域名不匹配” 的问题
|
||||||
|
|
||||||
|
|
||||||
### [3.6.3] - 2023-10-09
|
### [3.6.3] - 2023-10-09
|
||||||
|
|
||||||
#### 新增
|
#### 新增
|
||||||
|
@ -300,7 +300,7 @@ title: "版本更新记录"
|
||||||
|
|
||||||
- 优化限频配置的默认值
|
- 优化限频配置的默认值
|
||||||
- 增加 HTTP 497 错误重定向。当以 HTTP 协议访问 HTTPS 端口时,将重定向到 HTTPS([#186](https://github.com/chaitin/safeline/issues/186))
|
- 增加 HTTP 497 错误重定向。当以 HTTP 协议访问 HTTPS 端口时,将重定向到 HTTPS([#186](https://github.com/chaitin/safeline/issues/186))
|
||||||
- 默认拒绝 IP 和其他非指定域名的访问。如果需要通过 IP 访问站点,可以给站点添加一个 "*" 域名([#58](https://github.com/chaitin/safeline/issues/58))
|
- 默认拒绝 IP 和其他非指定域名的访问。如果需要通过 IP 访问站点,可以给站点添加一个 "\*" 域名([#58](https://github.com/chaitin/safeline/issues/58))
|
||||||
- 优化若干 UI 交互细节和文字提示
|
- 优化若干 UI 交互细节和文字提示
|
||||||
|
|
||||||
### [2.6.0] - 2023-08-10
|
### [2.6.0] - 2023-08-10
|
||||||
|
@ -385,7 +385,7 @@ title: "版本更新记录"
|
||||||
|
|
||||||
#### 新增
|
#### 新增
|
||||||
|
|
||||||
- 支持自定义站点的 nginx conf,详情可见[官网文档](/docs/faq/other#%E8%87%AA%E5%AE%9A%E4%B9%89%E7%AB%99%E7%82%B9-nginx-conf)
|
- 支持自定义站点的 nginx conf,详情可见[官网文档](/faq/other#%E8%87%AA%E5%AE%9A%E4%B9%89%E7%AB%99%E7%82%B9-nginx-conf)
|
||||||
- 添加/编辑站点时,自动检查端口占用情况,避免保存后配置不生效
|
- 添加/编辑站点时,自动检查端口占用情况,避免保存后配置不生效
|
||||||
- [站点列表支持按域名、端口或访问量进行排序](https://github.com/chaitin/safeline/issues/14)
|
- [站点列表支持按域名、端口或访问量进行排序](https://github.com/chaitin/safeline/issues/14)
|
||||||
- [绑定 TOTP 密钥时,支持直接复制密钥;登录时的 6 位动态密码输入框,支持粘贴](https://github.com/chaitin/safeline/issues/30)
|
- [绑定 TOTP 密钥时,支持直接复制密钥;登录时的 6 位动态密码输入框,支持粘贴](https://github.com/chaitin/safeline/issues/30)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
// @ts-check
|
// @ts-check
|
||||||
// Note: type annotations allow type checking and IDEs autocompletion
|
// Note: type annotations allow type checking and IDEs autocompletion
|
||||||
|
|
||||||
const lightCodeTheme = require("prism-react-renderer/themes/github");
|
// const lightCodeTheme = require("prism-react-renderer/themes/github");
|
||||||
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
|
// const darkCodeTheme = require("prism-react-renderer/themes/dracula");
|
||||||
|
|
||||||
/** @type {import('@docusaurus/types').Config} */
|
/** @type {import('@docusaurus/types').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
|
@ -14,12 +14,12 @@ const config = {
|
||||||
url: "https://waf-ce.chaitin.cn/",
|
url: "https://waf-ce.chaitin.cn/",
|
||||||
// Set the /<baseUrl>/ pathname under which your site is served
|
// Set the /<baseUrl>/ pathname under which your site is served
|
||||||
// For GitHub pages deployment, it is often '/<projectName>/'
|
// For GitHub pages deployment, it is often '/<projectName>/'
|
||||||
baseUrl: "/",
|
baseUrl: "/docs",
|
||||||
|
|
||||||
// GitHub pages deployment config.
|
// GitHub pages deployment config.
|
||||||
// If you aren't using GitHub pages, you don't need these.
|
// If you aren't using GitHub pages, you don't need these.
|
||||||
organizationName: "chaitin", // Usually your GitHub org/user name.
|
organizationName: "chaitin", // Usually your GitHub org/user name.
|
||||||
projectName: "safeline-docs", // Usually your repo name.
|
projectName: "document", // Usually your repo name.
|
||||||
|
|
||||||
onBrokenLinks: "throw",
|
onBrokenLinks: "throw",
|
||||||
onBrokenMarkdownLinks: "warn",
|
onBrokenMarkdownLinks: "warn",
|
||||||
|
@ -56,15 +56,12 @@ const config = {
|
||||||
/** @type {import('@docusaurus/preset-classic').Options} */
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
||||||
({
|
({
|
||||||
docs: {
|
docs: {
|
||||||
|
routeBasePath: "/",
|
||||||
sidebarPath: require.resolve("./sidebars.js"),
|
sidebarPath: require.resolve("./sidebars.js"),
|
||||||
// Remove this to remove the "edit this page" links.
|
// Remove this to remove the "edit this page" links.
|
||||||
// editUrl: "https://github.com/chaitin/safeline/tree/main/website",
|
// editUrl: "https://github.com/chaitin/safeline/tree/main/website",
|
||||||
},
|
},
|
||||||
blog: {
|
blog: false,
|
||||||
showReadingTime: true,
|
|
||||||
// Remove this to remove the "edit this page" links.
|
|
||||||
// editUrl: "https://github.com/chaitin/safeline/tree/main/website",
|
|
||||||
},
|
|
||||||
theme: {
|
theme: {
|
||||||
customCss: require.resolve("./src/css/custom.css"),
|
customCss: require.resolve("./src/css/custom.css"),
|
||||||
},
|
},
|
||||||
|
@ -105,22 +102,22 @@ const config = {
|
||||||
{
|
{
|
||||||
title: "资源",
|
title: "资源",
|
||||||
items: [
|
items: [
|
||||||
{
|
// {
|
||||||
label: "技术文档",
|
// label: "技术文档",
|
||||||
to: "/docs",
|
// to: "/",
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
label: "教学视频",
|
label: "教学视频",
|
||||||
to: "https://www.bilibili.com/medialist/detail/ml2342694989",
|
to: "https://www.bilibili.com/medialist/detail/ml2342694989",
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
label: "学习资料",
|
// label: "学习资料",
|
||||||
to: "/docs",
|
// to: "/",
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
label: "更新日志",
|
// label: "更新日志",
|
||||||
to: "/docs/about/changelog",
|
// to: "/about/changelog",
|
||||||
},
|
// },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -140,8 +137,8 @@ const config = {
|
||||||
copyright: `Copyright © ${new Date().getFullYear()} 北京长亭科技有限公司.All rights reserved.`,
|
copyright: `Copyright © ${new Date().getFullYear()} 北京长亭科技有限公司.All rights reserved.`,
|
||||||
},
|
},
|
||||||
prism: {
|
prism: {
|
||||||
theme: lightCodeTheme,
|
// theme: lightCodeTheme,
|
||||||
darkTheme: darkCodeTheme,
|
// darkTheme: darkCodeTheme,
|
||||||
},
|
},
|
||||||
colorMode: {
|
colorMode: {
|
||||||
defaultMode: 'light',
|
defaultMode: 'light',
|
||||||
|
|
7548
documents/package-lock.json
generated
7548
documents/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -16,26 +16,26 @@
|
||||||
"typecheck": "tsc"
|
"typecheck": "tsc"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "2.4.1",
|
"@docusaurus/core": "3.0.0",
|
||||||
"@docusaurus/preset-classic": "2.4.1",
|
"@docusaurus/preset-classic": "3.0.0",
|
||||||
"@easyops-cn/docusaurus-search-local": "^0.35.0",
|
"@easyops-cn/docusaurus-search-local": "0.37.4",
|
||||||
"@emotion/react": "11.11.1",
|
"@emotion/react": "11.11.1",
|
||||||
"@emotion/styled": "11.11.0",
|
"@emotion/styled": "11.11.0",
|
||||||
"@mdx-js/react": "^1.6.22",
|
"@mdx-js/react": "3.0.0",
|
||||||
"@mui/icons-material": "5.14.3",
|
"@mui/icons-material": "5.14.3",
|
||||||
"@mui/lab": "5.0.0-alpha.138",
|
"@mui/lab": "5.0.0-alpha.138",
|
||||||
"@mui/material": "5.14.3",
|
"@mui/material": "5.14.3",
|
||||||
"clsx": "^1.2.1",
|
"clsx": "^1.2.1",
|
||||||
"countup.js": "2.7.0",
|
"countup.js": "2.7.0",
|
||||||
"prism-react-renderer": "^1.3.5",
|
"prism-react-renderer": "2.1.0",
|
||||||
"react": "^17.0.2",
|
"react": "18.2.0",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "18.2.0",
|
||||||
"react-responsive-carousel": "3.2.23"
|
"react-responsive-carousel": "3.2.23"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@docusaurus/module-type-aliases": "2.4.1",
|
"@docusaurus/module-type-aliases": "3.0.0",
|
||||||
"@tsconfig/docusaurus": "^1.0.5",
|
"@tsconfig/docusaurus": "^1.0.5",
|
||||||
"typescript": "^4.7.4"
|
"typescript": "5.2.2"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
|
@ -50,6 +50,6 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.14"
|
"node": ">=18"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
8186
documents/yarn.lock
8186
documents/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue