1.配置站点,点击项目站点名称 ![](https://img.kancloud.cn/ad/77/ad7747772223c5fae91000a9c621029e_1630x730.png) 2.配置反向代理,代理名称随意填写,添加目标 URL:`http://127.0.0.1:8324` ![](https://img.kancloud.cn/94/69/9469ecb3999ad7a28f1e7558b7849c85_1606x1368.png) 3.配置 ws反向代理,点击 **配置文件** ![](https://img.kancloud.cn/b5/08/b508531745d6c54a27a2a6aa43713f8f_820x793.png) 复制以下内容,替换配置文件里10-24行并保存 ``` location / { proxy_pass http://127.0.0.1:8324; proxy_http_version 1.1; proxy_read_timeout 360s; proxy_redirect off; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr; add_header X-Cache $upstream_cache_status; #Set Nginx Cache add_header Cache-Control no-cache; expires 12h; } ``` 替换后,点击保存 ![](https://img.kancloud.cn/4f/74/4f74bcee5059c5d39cf0cbf7939eea62_634x591.png) OK.进行下一步,运行服务