mirror of
https://github.com/YMFE/yapi.git
synced 2025-03-07 14:16:52 +08:00
docs: add nginx and https info
This commit is contained in:
parent
4802c3cb31
commit
82b5851d6c
@ -1,5 +1,14 @@
|
|||||||
# 内网部署
|
# 内网部署
|
||||||
使用我们提供的 yapi-cli 工具,部署 YApi 平台是非常容易的。
|
使用我们提供的 yapi-cli 工具,部署 YApi 平台是非常容易的。建议部署成 http 站点,因 chrome 浏览器安全限制,部署成 https 会导致 测试功能的文件上传功能异常。
|
||||||
|
|
||||||
|
如果您是将服务器代理到 nginx 服务器,请配置 nginx 支持 websocket。
|
||||||
|
```
|
||||||
|
在location /添加
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
```
|
||||||
|
|
||||||
## 环境要求
|
## 环境要求
|
||||||
* nodejs(7.6+)
|
* nodejs(7.6+)
|
||||||
* mongodb(2.6+)
|
* mongodb(2.6+)
|
||||||
|
Loading…
Reference in New Issue
Block a user