Skip to content
EFS edited this page Sep 27, 2019 · 22 revisions

Table of Contents


How to create a public download directory?

You can use nginx fancyindex to create a read-only download link:

sudo su -
cd /etc/nginx/apps
touch $username.public.conf
cat > $username.public.conf << EOF
location /$username.public {
  alias /home/$username/public;
  include /etc/nginx/snippets/fancyindex.conf;
  location ~* \.php$ {

  }
}
EOF
nginx -s reload

please change the $username as well as alias /home/$username/public . You will be able to access your folder via https://YOURDOMAIN/$username.public

How to enable the share link of File Browser?

Due to the default setting, the auth function of File Browser. You have to reenable it, and the nginx basic auth should also be disabled. Here is the manual

  • Stop File Browser 服务 service

    sudo su -
    systemctl stop filebrowser@$username
  • reconfigure filebrowser

    filebrowser -d /home/$username/.config/filebrowser/filebrowser.db config set --address 0.0.0.0 --auth.method=json
  • disable nginx basic auth, commit following line in /etc/nginx/apps/filebrowser.conf

    #auth_basic "Password Required";
    #auth_basic_user_file /etc/htpasswd.d/htpasswd.$remote_user;
  • restart service

    nginx -s reload
    systemctl start filebrowser@$username
Why the auth popup windows keeping asking your auth info after login Flood ?

The Flood also use Basic auth, so the Cookies will be changed after successfully authencated. For now, there is currently no fundamental solution.

Clone this wiki locally