nginx配置注释
This commit is contained in:
@@ -9,6 +9,7 @@ server {
|
|||||||
root html;
|
root html;
|
||||||
index index.html index.htm index.php;
|
index index.html index.htm index.php;
|
||||||
|
|
||||||
|
#同步服务设置
|
||||||
location /route {
|
location /route {
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-real-ip $remote_addr;
|
proxy_set_header X-real-ip $remote_addr;
|
||||||
@@ -16,7 +17,7 @@ server {
|
|||||||
proxy_pass http://imserver;
|
proxy_pass http://imserver;
|
||||||
}
|
}
|
||||||
|
|
||||||
#社区版需要启用下面一段,专业版不能用
|
#客户端短连接业务
|
||||||
location /im {
|
location /im {
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-real-ip $remote_addr;
|
proxy_set_header X-real-ip $remote_addr;
|
||||||
@@ -24,10 +25,12 @@ server {
|
|||||||
proxy_pass http://imserver;
|
proxy_pass http://imserver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#版本检查/api/version,可以删掉
|
||||||
location /api {
|
location /api {
|
||||||
proxy_pass http://imserver;
|
proxy_pass http://imserver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#内置文件上传和下载
|
||||||
location /fs {
|
location /fs {
|
||||||
client_max_body_size 200M;
|
client_max_body_size 200M;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
@@ -36,6 +39,7 @@ server {
|
|||||||
proxy_pass http://imserver;
|
proxy_pass http://imserver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#机器人API
|
||||||
location /robot {
|
location /robot {
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-real-ip $remote_addr;
|
proxy_set_header X-real-ip $remote_addr;
|
||||||
@@ -43,6 +47,7 @@ server {
|
|||||||
proxy_pass http://imserver;
|
proxy_pass http://imserver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#频道API
|
||||||
location /channel {
|
location /channel {
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-real-ip $remote_addr;
|
proxy_set_header X-real-ip $remote_addr;
|
||||||
|
|||||||
Reference in New Issue
Block a user