Comments (6)
你确定是这样配的,我咋觉得你的 nginx 配错了,没有代理 /api/。你本地启动 nginx,然后本地访问地址,nginx 不是用在本地的。
嗯嗯,这个是代理的前端地址,配置到后端地址的nginx server块中就可以了,谢谢大佬
from ai-beehive.
本地没遇到过这种情况,nginx 会出现。
from ai-beehive.
本地没遇到过这种情况,nginx 会出现。
我是在本地用nginx启动的,请求是什么原因啊?该怎么解决呢?
from ai-beehive.
ngxin 配置中添加 proxy_buffering off;
from ai-beehive.
ngxin 配置中添加 proxy_buffering off;
server {
listen 80;
server_name _;
proxy_buffering off;
access_log /var/log/nginx/access.log combined;
gzip on;
gzip_comp_level 5;
gzip_types text/plain application/javascript application/x-javascript text/javascript text/xml text/css;
index index.html index.htm index.jsp index.php;
location / {
proxy_pass http://127.0.0.1:8080;
add_header Access-Control-Allow-Origin *;
proxy_set_header Host $host;
proxy_set_header X-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
大佬,我是这样配置的,不起作用啊
from ai-beehive.
你确定是这样配的,我咋觉得你的 nginx 配错了,没有代理 /api/。你本地启动 nginx,然后本地访问地址,nginx 不是用在本地的。
from ai-beehive.
Related Issues (20)
- docker中的日志文件在哪呀 没找到 HOT 1
- 请问下大家yml中api_reverse_proxy参数如何配置 HOT 1
- MJ V 操作后无法再次 UV
- v1.1.0 AccessToken 模式报错
- 打包为dist并部署到nginx后,前端无法显示实时聊天内容 HOT 2
- 为什么要限制对话的消息的总长度呢? HOT 6
- 增加对百度文心千帆大模型的支持
- NewBing 无法使用修复
- NewBing 待修复
- 发出后的信息没有换行了,出现平台和百度文心一言后台返回结果不一样。
- 前端每次读取内容,会偶尔出现 读取一半的json数据 HOT 1
- 增加 ChatGLM2-6B 开源模型
- Hardcoded Vulnerabilities HOT 2
- 代理地址的端口号怎么填写 HOT 3
- Midjourney参数配置都正确了,但是请求发到Discord的时候连接关闭 HOT 1
- 2.0.0 版本 chat_room,chat_message,/rate_limit 等接口404 HOT 1
- 将配置文件以JSON形式存入数据库的目的是什么? HOT 1
- token 验证目前存在bug 各种路径未生效 HOT 1
- 后端只有客户端接口,没有管理端接口吗 HOT 1
- 体验版发送消息报错 HOT 1
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 ai-beehive.