mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2974] nginx 做代理 转发tcp 上传超过7m的文件报502 #2375
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2375
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iCloudys on GitHub (Jun 9, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2974
Bug Description
正常按照教程搭建好客户端和服务端,如果直接使用服务端ip:端口号上传文件没问题,如果在服务端安装了nginx并且配置了proxy_pass 到本机的端口号,则上传超过7m会报502,并且log_level=trace没有日志信息
frpc Version
0.43.0
frps Version
0.43.0
System Architecture
linux/amd64
Configurations
frps.ini
frpc.ini
nginx.conf
以上配置如果直接使用XXX.XXX.XXX.XXX:9877 上传文件没问题,如果使用XXX.XXX.XXX.XXX:80 文件超过7m就报502。
这边查看nginx日志和程序日志,以及frp日志,没有任何输出
Logs
No response
Steps to reproduce
...
Affected area
@Becods commented on GitHub (Jun 29, 2022):
依你的配置来看,frp转发tcp,由此可明确502发生在你的nginx上,请检查你的配置
@supply9243 commented on GitHub (Jul 10, 2022):
添加这个试试
proxy_buffering off;
@iCloudys commented on GitHub (Jul 12, 2022):
@K2M74 依然不行
@star7th commented on GitHub (Jul 25, 2022):
顺手看到了就回复下吧。我觉得,这样大概能解决: nginx配置里, client_max_body_size 1000M 放到location /api/ 块的外面而不是里面。然后重启nginx
@iCloudys commented on GitHub (Jul 28, 2022):
@star7th 这个方式试了,不行
@github-actions[bot] commented on GitHub (Aug 28, 2022):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
@iCloudys commented on GitHub (Sep 27, 2022):
@cainb 没解决,放弃转发的方案了
@iCloudys commented on GitHub (Sep 28, 2022):
项目放公网了,所以不需要内网穿透了
在 2022-09-27 10:21:43,"cainb" @.***> 写道:
@cainb 没解决,放弃转发的方案了
这样子吖,那新方案方便分享下嘛(
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>
@iCloudys commented on GitHub (Oct 9, 2022):
谢谢