From 492268ec5b2eb3f51e16d412e364a47b568c3ea7 Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Fri, 30 Oct 2020 09:56:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E6=94=B9=E8=BF=9B=20README.m?= =?UTF-8?q?d=20=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 7b4ceed..090010e 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ -# vic.server -个性价值.服务端 +# tac/vic.server: 个性价值.服务端 -## GIT项目库导航 -* 应用链总入口 [tac/_tac](https://git.faronear.org/tac/_tac) - * 个性价值 [tac/vic](https://git.faronear.org/tac/vic) - * 官网 [tac/vic.home](https://git.faronear.org/tac/vic.home) - * 设计 [tac/vic.design](https://git.faronear.org/tac/vic.design) - * 前端 [tac/vic.h5](https://git.faronear.org/tac/vic.h5) - * **后台 [tac/vic.server](https://git.faronear.org/tac/vic.server)** +## 项目库导航 + +- 应用链总入口 [tac/\_tac](https://git.faronear.org/tac/_tac) + - 个性价值 [tac/vic](https://git.faronear.org/tac/vic) + - 官网 [tac/vic.home](https://git.faronear.org/tac/vic.home) + - 设计 [tac/vic.design](https://git.faronear.org/tac/vic.design) + - 前端 [tac/vic.h5](https://git.faronear.org/tac/vic.h5) + - **后台 [tac/vic.server](https://git.faronear.org/tac/vic.server)** ## 安装 @@ -15,26 +15,29 @@ ## 配置 -* 设置 ssl 证书 +- 设置 ssl 证书 ``` certbot certonly -d server.vic.yuanjin.net ``` -* mongodb 设置数据库账号 -* mongodb 配置文件已集成到 `vic.server/mongod.conf` 中 - * bindIp: 127.0.0.1 (生产环境) - * bindIpAll: true (开发环境) -* 编写 `/tac/vic.server/configSec.js`,设置HD钱包的根密钥等等 - * protocol: https (生产环境) - * protocol: http (开发环境) - * port: 6842 (不要用 80/443,因为这要留给certbot) +- mongodb 设置数据库账号 +- mongodb 配置文件已集成到 `vic.server/mongod.conf` 中 + - bindIp: 127.0.0.1 (生产环境) + - bindIpAll: true (开发环境) +- 编写 `/tac/vic.server/configSec.js`,设置 HD 钱包的根密钥等等 + - protocol: https (生产环境) + - protocol: http (开发环境) + - port: 6842 (不要用 80/443,因为这要留给 certbot) ## 运行 1. 启动 mongodb + ``` sudo /mongodb/bin/mongod -f /tac/vic.server/mongod.conf --logpath /data/log/mongo.log ``` + 以上命令已经被集成到 package.json 中,也可通过 npm 调用: + ``` sudo npm run mongod ``` @@ -51,4 +54,4 @@ ## 部署 -* 应用后台主机 `server.vic.yuanjin.net`,用户名 `tic` +- 应用后台主机 `server.vic.yuanjin.net`,用户名 `tic`