提交 36df95dd 编写于 作者: JiaRongPing's avatar JiaRongPing

fix: 私有云文档补充

上级 e589121a
......@@ -141,6 +141,15 @@ server {
}
}
//注意,上述配置中用到的$clientRealIp变量并非是内置变量,需在nginx.conf文件的http模块定义后才可使用,以下为配置示例:
http {
## Get Client Real IP
map $http_x_forwarded_for $clientRealIp {
"" $remote_addr;
~^(?P<firstAddr>[0-9\.]+),?.*$ $firstAddr;
}
}
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册