Comments (3)
如果使用的是nginx,可通过下面的方式实现支持wss
- nginx proxy添加参数
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
- http块添加参数
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
from chatnio.
如果使用的是nginx,可通过下面的方式实现支持wss
- nginx proxy添加参数
proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade;
- http块添加参数
map $http_upgrade $connection_upgrade { default upgrade; '' close; }
大哥咨询一下,我是新手,使用的是宝塔NGINX反代的容器,这个要怎么修改啊,谢谢啊大哥。
from chatnio.
网上好多教程可以去看看,以及chatnio项目根目录下有个nginx.conf可以借鉴一下。
from chatnio.
Related Issues (20)
- SDKs链接崩了 HOT 1
- 文件解析失败 HOT 3
- 编译出来的mac app 报网络错误 HOT 25
- [Bug] 在未请求成功阶段无法暂停问题 HOT 2
- [Feat] 支持偏好设置中设置 输入预处理 / 系统预设注入 HOT 2
- [Notify] 最近要中考比较忙,Issue 和更新中考完后处理。I've been busy with my High School Entrance Exams recently, so I'll process the Issue and updates after the exams.
- 如何对接ollama本地模型 HOT 2
- 建议增加对本地模型 localai-minilm 的支持 HOT 1
- 资源包 HOT 2
- 【求助】api无法使用,不知道是不是自己搞错了。 HOT 21
- 建议增加用户级别纬度的模型使用量明细查询 HOT 1
- [Improve] 提供后台用户管理设置订阅详细信息和操作 HOT 8
- [update] tiktoken base upgrade HOT 2
- 编译完成了,数据库也连正确,但是日志一直在报错 HOT 1
- [Feat] 支持rag或者知识库能力 HOT 2
- 支持SQLite轻量化部署
- 上传图片文件提问后报错 HOT 4
- [Option] Web UI 默认隐藏工具栏选项 HOT 1
- Open-source VS Pro questions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatnio.