How to use Filebrowser
Installation
Filebrowser is a single binary that can be used as a standalone executable. Alternatively, you can use it with Docker or Caddy, a fantastic web server that enables HTTPS by default. Its installation is straightforward regardless of the system you use.
Using Brew
Note: Brew is available for both Linux and macOS.
[[How to install Brew]]
1 | brew tap filebrowser/tap |
Tip: Configure Filebrowser before running it for the first time.
Once configured, your Filebrowser instance should be running successfully!
Configuration
Filebrowser offers flexible configuration options, including an official CLI.
- Set the address:bash
1
filebrowser config set address 0.0.0.0
- Set the port:bash
1
filebrowser config set port 8090
- Set the root directory:bash
1
filebrowser config set root [your directory path]
Export the configuration for future use:
1 | filebrowser config export [output path] |
Next time, you can load this configuration file to restore your settings.
Starting Filebrowser
Direct Execution
Run Filebrowser directly with the following command:
1 | filebrowser -c [your config file path] -d [database path] |
Note: Specify the database path during the first run. You can reuse the same
.db
file later to recover your site.
Running in the Background
Example for macOS
1 |
|
Example for Ubuntu
1 | [Unit] |