提交 74847a17 编写于 作者: JiaRongPing's avatar JiaRongPing

fix:私有云环境文档调整

上级 4fdedfb9
...@@ -93,9 +93,9 @@ spaceId可在[uniCloud控制台](https://unicloud.dcloud.net.cn/)查看。 ...@@ -93,9 +93,9 @@ spaceId可在[uniCloud控制台](https://unicloud.dcloud.net.cn/)查看。
"spaceId": "pvt-xxx",//私有云服务空间编号,可在uniCloud控制台查看 "spaceId": "pvt-xxx",//私有云服务空间编号,可在uniCloud控制台查看
"startAsDaemon": true, // 是否在后台运行; 默认 true "startAsDaemon": true, // 是否在后台运行; 默认 true
"port": 7001, //端口号,可自定义,同一台服务器下,各服务空间的端口号不可重复 "port": 7001, //端口号,可自定义,同一台服务器下,各服务空间的端口号不可重复
"clientSecret": "ba461799-fde8-429f-8cc4-4b6d306e2339",//客户端通讯密钥 "clientSecret": "xxx",//客户端通讯密钥
"mongodb": { //mongo数据库连接配置 "mongodb": { //mongo数据库连接配置
"url": "mongodb://127.0.0.1:27017",//数据库连接 "url": "mongodb://username:password@127.0.0.1:7001",//数据库连接
"database": "test", //数据库名称 "database": "test", //数据库名称
"maxPoolSize": 30, //最大连接数 "maxPoolSize": 30, //最大连接数
"minPoolSize": 10 //最小连接数 "minPoolSize": 10 //最小连接数
...@@ -172,8 +172,8 @@ server { ...@@ -172,8 +172,8 @@ server {
http { http {
## Get Client Real IP ## Get Client Real IP
map $http_x_forwarded_for $clientRealIp { map $http_x_forwarded_for $clientRealIp {
"" $remote_addr; "" $remote_addr;
~^(?P<firstAddr>[0-9\.]+),?.*$ $firstAddr; ~^(?P<firstAddr>[0-9\.]+),?.*$ $firstAddr;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册