Comments (12)
是否能贴例如详细的Nginx配置上来呢?
from chatgpt-web.
是否能贴例如详细的Nginx配置上来呢?
location /chatgpt-web {
proxy_pass http://172.30.0.7:3002/;
proxy_redirect off;
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_buffering off;
}
就这样的,172.30.0.7是chatgpt-web容器
from chatgpt-web.
第一行试试
location /chatgpt-web/ {
from chatgpt-web.
第一行试试
location /chatgpt-web/ {
这个斜杠我加了,不过它这个还没有到反向代理那,它让浏览器请求访问的https://xxx:443/assets/...没有进入到chatgpt-web这个location。我问chatgpt它说是代码返回的url有问题
from chatgpt-web.
第二行3002后面的斜杠去掉呢?
from chatgpt-web.
查下Nginx反向代理的写法就好了
from chatgpt-web.
还有没有其他办法。这个第一个请求都是成功的,所以不是反向代理路径的问题(之前我就都试过),是返给浏览器发起的请求没加我的location
from chatgpt-web.
这种情况,一般要rewrite下请求的路径,或者后端web要支持部署到chat-web目录,否则后端是将自己的资源路径直接返回给nginx,然后到用户
from chatgpt-web.
嗯...express 是基于根目录绑定路径的...
如果你要部署的话,需要修改 service\src\index.ts
的 L703-704,把 '' 和 '/api' 改成比如 '/chatgpt-web' 和 '/chatgpt-web/api',然后打包,部署
from chatgpt-web.
感谢,我研究下
from chatgpt-web.
还有其他办法。这个第一个请求都是成功的,所以不是反向代理路径的问题(之前我都试过),是返回给浏览器发起的请求没有加我的位置
静态文件也需要反向代理,这样可以解决css文件和js文件访问404的问题。
from chatgpt-web.
谢谢你,我后头还是选择加了条解析单独代理,懒得弄了
from chatgpt-web.
Related Issues (20)
- 不用注册也能用的ChatGPT怎么集成? HOT 1
- 能否根据不同模型扣除不同次数
- 用户管理页面能否增加一个最后登陆时间的字段?
- 选择3.5模型后,询问GPT他说他是3的模型,但是同一个Key我在别的平台用,一样选择3.5我再问他,他说他是3.5模型 HOT 2
- GPT4 turbo
- 邮箱验证、修改密码报错后,后台服务程序直接退出 HOT 1
- SMTP设置部分能增加一个发件人地址字段吗
- 建议增加STT、TTS、OCR功能
- 程序回答代码高亮问题 HOT 5
- 怎么修改api地址和添加模型呢 HOT 2
- 新用户全局次数设置,是否可以实现每日重置呢? HOT 1
- 程序内容回答过多的时候需要手动下拉才能到最底下
- 怎么在vercel上部署? HOT 1
- 冒昧问下更新后设置key的地方在哪里? HOT 2
- 最新版本【aaae763】的复制功能用不了,麻烦复原下原来的!!! HOT 6
- 【错误】连续对话错误
- 对话失败|怎么设置代理地址? HOT 1
- 随着4o模型的出现,是否能支持多模态的内容输入和输出 HOT 1
- FR: 用户输入增加渲染markdown语法支持 HOT 3
- vision模型图片上传没压缩?
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 chatgpt-web.