Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
1 result

filebrowser

  • Clone with SSH
  • Clone with HTTPS
  • David Beniamine's avatar
    3f210b4a
    History

    Installation

    ./init.sh
    $EDITOR .env
    docker-compose up -d

    The initial credentials are admin / admin please change them as soon as your are logged in.

    Customisation

    Run a command upon file creation

    If you which to run a commande upon file creation (or upload), you can add a custom script in data/scripts/new_file.sh, this script must be executable, and must start with /bin/sh not /bin/bash.

    Then add to your .env :

    FILE_CREATION_SCRIPT=/scripts/new_file.sh

    It will be called each time a new file/directory is created with the file path as the first argument

    Set default permissions

    It is possible to set a umask on all files created but this is only compatible with filebrowser versions up to 2.27, so you must set in your .env

    UMASK=007
    VERSION=v2.27.9

    If you which that all new directories have permissions 770 and files 660