| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 | 
							- 1、nacos gateway配置文件增加-部署中心路由节点:
 
- spring:
 
-   cloud:
 
-     gateway:
 
-         routes:
 
-           # 部署中心服务
 
-           - id: soc-deploy
 
-             uri: lb://soc-deploy
 
-             predicates:
 
-               - Path=/api/delpoy/**
 
-             filters:
 
-               - StripPrefix=2
 
-            # websocket模块
 
-           - id: soc-websocket
 
-             uri: lb:ws://soc-mediator
 
-             predicates:
 
-               - Path=/ws/**
 
-           - id: soc-websocket
 
-             uri: lb:ws://soc-mediator
 
-             predicates:
 
-               - Path=/ws1/**
 
- 2、nacos gateway配置文件增加-部署中心不校验白名单:
 
- security:
 
-   ignore:
 
-      whites:
 
-         - /api/deploy/register
 
-         - /api/deploy/accesstoken
 
-         - /api/deploy/package/download/**
 
-         - /api/deploy/agent/download/**
 
-         - /api/deploy/frontend/synchronDate
 
-         - /api/deploy/heartbeat
 
-         - /api/deploy/list
 
-         - /api/deploy/report
 
-         - /api/deploy/task
 
-         - /api/deploy/taskReport
 
-         - /ws/**
 
-         - /ws1/**
 
- 3.nginx配置文件修改
 
-     3.1在监听8080的 server块下增加配置:
 
-         location /ws {
 
-                  proxy_pass http://api;
 
-                  proxy_http_version 1.1;
 
-                  proxy_set_header Upgrade $http_upgrade;
 
-                  proxy_set_header Connection "upgrade";
 
-                  proxy_set_header Host $host;
 
-         }
 
-     3.2在监听8080的 server块下 location @api { 这一行下一行追加两行代码:
 
-         proxy_set_header X-Local-Ip $host;
 
-         proxy_set_header X-Local-Port $server_port;
 
-     3.3 重新加载配置文件:
 
-         在nginx的安装目录下的sbin目录执行命令: ./nginx -s reload
 
 
  |