[server.js] remove greenlock; 补充完整 httpall 时也启动 http; [config.js] 默认在开发环境下 http 模式

This commit is contained in:
Luk Lu
2019-09-24 11:04:41 +08:00
parent 2d262ed94c
commit 01c0633368
3 changed files with 28 additions and 39 deletions

View File

@@ -14,14 +14,18 @@
## 配置
* 设置 ssl 证书
```
certbot certonly -d server.fiv.tacever.org
```
* mongodb 设置数据库账号
* mongodb 配置文件已集成到 ```fiv.server/mongod.conf``` 中
* <font color=red>还需要哪些信息?例如 mongodb 的管理账号和密码?</font>
* bindIp: 127.0.0.1 (生产环境)
* bindIpAll: true (开发环境)
* 编写 ```/fiv.server/configSec.js```设置HD钱包的根密钥等等
* protocol: https (生产环境)
* protocol: http (开发环境)
* port: 6842 (不要用 80/443因为这要留给)
* port: 6842 (不要用 80/443因为这要留给certbot)
## 运行