完全引入VuePress框架,现在文档与目录编辑完成
This commit is contained in:
parent
d44689b4e2
commit
ba7d95843f
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
||||
.DS_Store
|
||||
.vscode
|
||||
node_modules
|
||||
dist
|
39
README.md
39
README.md
@ -1,3 +1,38 @@
|
||||
# 关于FreeSWITCH及其相关技术的文档
|
||||
# 项目说明
|
||||
|
||||
这个仓库里尽可能的收录做FreeSWITCH维护、开发、使用过程中可能遇到的所有技术问题
|
||||
## 简单介绍
|
||||
|
||||
这是基于VuePress构建的一个电子书项目,技术栈为Vue,书中收录的内容主要与FreeSWITCH相关,是面向PHP程序员的FreeSWITCH开发文档,包括linux、docker、git、lua、前端等各方面的内容,是PHP程序员在做FreeSWITCH相关开发过程中做的技术记录。
|
||||
|
||||
## 使用方法
|
||||
|
||||
### 前提条件
|
||||
|
||||
- Node.js版本 >= 8.6
|
||||
- npm或yarn(VuePress官方推荐使用yarn,因为npm有时会生成错误的依赖树)
|
||||
|
||||
### 预览方法
|
||||
|
||||
```sh
|
||||
yarn dev
|
||||
```
|
||||
|
||||
VuePress会在 http://localhost:8080 启动一个热重载的开发服务器,可以在浏览器中打开并查看电子书,在控制台按`ctrl+c`终止服务。
|
||||
|
||||
### 打包方法
|
||||
|
||||
```sh
|
||||
yarn build
|
||||
```
|
||||
|
||||
执行完成后会在`docs/.vuepress`目录下生成`dist`目录,里面都是纯表态html页面,把`dist`目录内的文件拷贝到任意http站点服务器的根目录里就可以了。
|
||||
|
||||
### 编辑方法
|
||||
|
||||
文档的根目录就是`docs`目录,其中`docs/README.md`文件是整个文档的首页,打包后生成的`index.html`页面就是根据这个文件生成的。
|
||||
|
||||
文档内的其他目录和markdown文件根据实际情况随意创建即可。
|
||||
|
||||
网页侧边栏的目录是在`docs/.vuepress/config.js`文件中定义的,具体定义方法可以查询VuePress官方文档
|
||||
|
||||
[VuePress主题-默认主题配置-侧边栏](https://vuepress.vuejs.org/zh/theme/default-theme-config.html#%E4%BE%A7%E8%BE%B9%E6%A0%8F)
|
||||
|
@ -1,3 +0,0 @@
|
||||
|
||||
* [FreeSWITCH]
|
||||
* [Debian11安装FreeSWITCH1.10](freeswitch/Debian11安装FreeSWITCH1.10.md)
|
87
docs/.vuepress/config.js
Normal file
87
docs/.vuepress/config.js
Normal file
@ -0,0 +1,87 @@
|
||||
module.exports = {
|
||||
title: "PHP程序员的FreeSWITCH开发文档",
|
||||
description: "一个PHP程序在做FreeSWITCH相关的应用开发时积累的技术文档",
|
||||
themeConfig: {
|
||||
displayAllHeaders: false,
|
||||
sidebar: [
|
||||
{
|
||||
title: "README",
|
||||
path: "/",
|
||||
sidebarDepth: 0,
|
||||
},
|
||||
{
|
||||
title: "FreeSWITCH",
|
||||
children: [
|
||||
"/freeswitch/安装freeswitch1.6",
|
||||
"/freeswitch/Debian11安装FreeSWITCH1.10",
|
||||
"/freeswitch/Debian11安装FreeSWITCH1.10-参照ClueCon官方文档",
|
||||
"/freeswitch/Debian11安装lua和luarocks",
|
||||
"/freeswitch/为FreeSWITCH安装mod_unimrcp模块",
|
||||
"/freeswitch/FreeSWITCH对接阿里云MRCP",
|
||||
"/freeswitch/freeswitch对接百度mrcp",
|
||||
"/freeswitch/freeswitch配置ssl",
|
||||
"/freeswitch/搭建STUN服务",
|
||||
"/freeswitch/恶意SIP行为IP黑名单",
|
||||
],
|
||||
initialOpenGroupIndex: 0, // 可选的, 默认值是 0
|
||||
sidebarDepth: 0, // 可选的, 默认值是 1
|
||||
},
|
||||
{
|
||||
title: "前端",
|
||||
children: [
|
||||
"/frontend/解决create-vue创建的项目运行后提示Network: use --host to expose的问题",
|
||||
"/frontend/在linux中安装node二进制文件",
|
||||
"/frontend/在vscode里配置vetur符合eslint",
|
||||
"/frontend/npm切换源",
|
||||
],
|
||||
initialOpenGroupIndex: 0, // 可选的, 默认值是 0
|
||||
sidebarDepth: 0, // 可选的, 默认值是 1
|
||||
},
|
||||
{
|
||||
title: "PHP",
|
||||
children: ["/php/php74安装pgsql扩展"],
|
||||
initialOpenGroupIndex: 0, // 可选的, 默认值是 0
|
||||
sidebarDepth: 0, // 可选的, 默认值是 1
|
||||
},
|
||||
{
|
||||
title: "GIT",
|
||||
children: ["/git/常用git命令", "/git/生成sshkey"],
|
||||
initialOpenGroupIndex: 0, // 可选的, 默认值是 0
|
||||
sidebarDepth: 0, // 可选的, 默认值是 1
|
||||
},
|
||||
{
|
||||
title: "Linux",
|
||||
children: [
|
||||
"/linux/阿里云centos磁盘扩容",
|
||||
"/linux/删除.user.ini文件",
|
||||
"/linux/删除某时间前的文件或文件夹",
|
||||
"/linux/centos7防火墙",
|
||||
"/linux/docker操作",
|
||||
"/linux/linux常用命令",
|
||||
"/linux/linux改网卡名",
|
||||
"/linux/ssh客户端保持连接",
|
||||
"/linux/ssh免密码连接服务器",
|
||||
"/linux/tmux操作",
|
||||
"/linux/ubuntu配静态IP",
|
||||
"/linux/ubuntu配置nfs服务",
|
||||
"/linux/vim操作",
|
||||
],
|
||||
initialOpenGroupIndex: 0, // 可选的, 默认值是 0
|
||||
sidebarDepth: 0, // 可选的, 默认值是 1
|
||||
},
|
||||
{
|
||||
title: "Docker",
|
||||
children: [
|
||||
"/docker/Debian11下安装docker和docker-compose",
|
||||
"/docker/配置Docker Hub国内镜像加速",
|
||||
"/docker/docker部署gitea服务",
|
||||
"/docker/docker部署minio服务",
|
||||
"/docker/docker部署postgres数据库服务",
|
||||
"/docker/docker部署rabbitmq启用stomp和延时队列",
|
||||
],
|
||||
initialOpenGroupIndex: 0, // 可选的, 默认值是 0
|
||||
sidebarDepth: 0, // 可选的, 默认值是 1
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
3
docs/README.md
Normal file
3
docs/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# 关于FreeSWITCH及其相关技术的文档
|
||||
|
||||
这个仓库里尽可能的收录做FreeSWITCH维护、开发、使用过程中可能遇到的所有技术问题
|
@ -1,4 +1,4 @@
|
||||
## 在Debian11服务器上使用docker部署gitea服务器完整过程
|
||||
## docker部署gitea服务器完整过程
|
||||
|
||||
本文目标:
|
||||
|
@ -12,7 +12,7 @@
|
||||
}
|
||||
```
|
||||
|
||||
> 可以云阿里云镜像加速服务中获取账号专用的阿里云加速链接,添加到"registry-mirrors"的第一行。
|
||||
> 可以去阿里云镜像加速服务中获取账号专用的阿里云加速链接,添加到"registry-mirrors"的第一行。
|
||||
|
||||
重启服务:
|
||||
|
@ -1,4 +1,4 @@
|
||||
## Debian编译安装FreeSWITCH
|
||||
## 在Debian11中编译安装FreeSWITCH1.10
|
||||
|
||||
> wandoubaba / 2023-01-15
|
||||
|
@ -1,8 +1,8 @@
|
||||
# 初步在ubuntu16.04系统上安装freeswitch1.6
|
||||
# 在ubuntu16.04系统上安装freeswitch1.6
|
||||
|
||||
------
|
||||
|
||||
## 1. 操作系统和软件版本
|
||||
## 操作系统和软件版本
|
||||
|
||||
ubuntu16.04
|
||||
|
||||
@ -12,7 +12,7 @@ python2.7
|
||||
|
||||
lua5.3
|
||||
|
||||
## 2. 准备工作
|
||||
## 准备工作
|
||||
|
||||
### 安装系统
|
||||
|
||||
@ -121,7 +121,7 @@ git remote rm origin
|
||||
|
||||
> 最后一句是断开本地目录和远程代码库的关联
|
||||
|
||||
## 3. 安装freeswitch
|
||||
## 安装freeswitch
|
||||
|
||||
- 配置lua(如果不需要mod_lua模块,可跳过)
|
||||
|
@ -1,7 +1,8 @@
|
||||
# SIP服务的IP黑名单(持续更新)
|
||||
# 恶意SIP行为IP黑名单(持续更新)
|
||||
|
||||
---
|
||||
> 更新时间: 2023年7月4日
|
||||
|
||||
```text
|
||||
103.145.13.152
|
||||
103.145.13.249
|
||||
13.64.199.47
|
||||
@ -86,3 +87,4 @@
|
||||
77.247.108.248
|
||||
77.247.108.56
|
||||
77.247.108.31
|
||||
```
|
@ -1,6 +1,4 @@
|
||||
# 阿里云磁盘扩容(centos7)
|
||||
|
||||
---
|
||||
# 阿里云CentOS7磁盘扩容
|
||||
|
||||
## 场景
|
||||
|
||||
@ -30,7 +28,11 @@ df -h
|
||||
growpart /dev/vda 1
|
||||
```
|
||||
|
||||
> 语法 growpart <DeviceName> <PartionNumber>
|
||||
语法
|
||||
|
||||
```sh
|
||||
growpart [DeviceName] [PartionNumber]
|
||||
```
|
||||
|
||||
扩容文件系统
|
||||
|
||||
@ -38,4 +40,8 @@ growpart /dev/vda 1
|
||||
resize2fs /dev/vda1
|
||||
```
|
||||
|
||||
> 语法 resize2fs <PartitionName>
|
||||
语法
|
||||
|
||||
```sh
|
||||
resize2fs [PartitionName]
|
||||
```
|
15
package.json
Normal file
15
package.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "fsbook-for-phper",
|
||||
"version": "1.0.0",
|
||||
"description": "a PHPer's FreeSWITCH developing docs",
|
||||
"main": "index.js",
|
||||
"author": "wandoubaba",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"vuepress": "^1.9.9"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "export NODE_OPTIONS=--openssl-legacy-provider && vuepress dev docs",
|
||||
"build": "export NODE_OPTIONS=--openssl-legacy-provider && vuepress build docs"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user