amefs / quickbox-lite

Lightweigt QuickBox
https://wiki.ptbox.dev/
GNU General Public License v3.0
811 stars 116 forks source link

FBE和File Browser都不能上本地文件 #177

Closed lengdong863 closed 1 year ago

lengdong863 commented 1 year ago

FBE和File Browser都不能上文件 微信截图_20221221221739 报错都一样。 系统版本信息:ubuntu-22.04 64bit QuickBox V1.5.6

amefs commented 1 year ago

请你在修改 /etc/nginx/apps/filebrowser.conf 以解除限制,这是因为你的文件尺寸超过了全局默认值。

location /filebrowser {
  return 301 /filebrowser/;
}

location /filebrowser/ {
  client_max_body_size 0;
  auth_basic "Password Required";
  auth_basic_user_file /etc/htpasswd.d/htpasswd.$remote_user;
  rewrite ^/filebrowser/(.*) /$1 break;
  proxy_pass http://$remote_user.filebrowser;
}

随后运行 nginx -s reload

lengdong863 commented 1 year ago

捕获

nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/etc/ssl/certs/ssl-cert-snakeoil.pem"

这应该怎么办啊?

amefs commented 1 year ago

这只是警告,默认使用自签证书就会有,不影响使用。安装 lecert 或者正常的证书就可以解除。

lengdong863 commented 1 year ago

我这边查看了/etc/nginx/apps/filebrowser.conf,这个文件,已经修改成功了。但是还是会有同样的提示。 我先用Xftp 7替代吧。