企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## **Pro v2.0 版本nignx服务器客服端配置说明** 1.复制以下内容 ~~~ #PROXY-START/ location ~* \.(php|jsp|cgi|asp|aspx)$ { proxy_pass http://127.0.0.1:20199; 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; } location / { if (!-e $request_filename) { proxy_pass http://127.0.0.1:20199; } 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; } #PROXY-END/ ~~~ 2.点击刚添加的反向代理,后方的**配置文件** ![](https://img.kancloud.cn/98/a8/98a80d59cfb8c8d0b143642eaeb9e80f_1556x1064.png) 3.替换配置文件 (全部配置)并修改端口号 ![](https://img.kancloud.cn/92/84/92844dfcd37f40c1fab4d76201efc13f_549x462.png) 替换后,点击保存 ![](https://img.kancloud.cn/7e/c8/7ec8267b5aa79a77b2a660cea012ddc2_591x529.png) nignx反向代理设置完毕。