大佬们好,我的cloudreve部署在树莓派3B上,使用frp穿透和nginx反代,通过域名访问cloudreve,如附图所示上传文件进度到100%会停住,过一会才显示已上传到目录,而且上传的文件越大,停顿时间越长;
但在局域网下通过IP+端口的方式访问上传,就不会出现上述情况,想麻烦大佬能帮我看看nginx的配置有什么问题吗?
树莓派3B,操作系统:raspberrypi OS
cloudreve版本:cloudreve_3.8.3_linux_armv7
nginx版本:1.22.1
nginx配置如下:
http {
sendfile on;
tcp_nopush on;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
server {
listen 80;
server_name *.xxxx.xyz xxxx.xyz;
location / {
proxy_pass http://127.0.0.1:5080;
proxy_cache off;
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;
}
}
server {
listen 80;
server_name cloudreve.xxxx.xyz;
rewrite (.*) https://cloudreve.xxxx.xyz$1 permanent;
proxy_cache off;
proxy_redirect off;
}
server {
listen 443;
server_name *.xxxx.xyz;
ssl on;
root html;
index index.html index.htm;
ssl_certificate //证书地址
ssl_certificate_key //证书地址
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://127.0.0.1:5080;
client_max_body_size 100000m;
proxy_cache off;
proxy_set_header Host $host:80;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
proxy_hide_header X-Powered-By;
}
}
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;
gzip on;
application/xml+rss text/javascript;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}