2023-07-29 15:16:09 +00:00
## Gtstef / filebrowser
2018-06-26 10:10:12 +00:00
2023-09-03 17:40:09 +00:00
> **NOTE**
Intended for docker use only
> **Warning**
2023-09-03 22:19:51 +00:00
Starting with v0.2.0, *ALL* configuration is done via `filebrowser.yaml` configuration file. `.filebrowser.json` and any flags other than `-c` and `-config` during execution WILL NO LONGER WORK. This is by design, in order to use the v0.2.0 You can mount your directory and initialize a new DB with a new default `filebrowser.yaml` which you can tweak and use in the future. Or you can copy and paste the default startup `filebrowser.yaml` below.
2018-04-23 21:42:52 +00:00
2023-06-13 13:22:24 +00:00
This fork makes the following significant changes to filebrowser for origin:
2023-06-15 01:08:09 +00:00
1. [x] Improves search to use index instead of filesystem.
2023-06-16 17:29:43 +00:00
- [x] Lightning fast
- [x] Realtime results as you type
2023-07-17 05:32:43 +00:00
- [x] Works with file type filter
2023-07-30 22:40:59 +00:00
- [x] better desktop search view
2023-09-03 17:40:09 +00:00
1. [x] Preview enhancements
2023-07-30 22:40:59 +00:00
- Preview default view is constrained to files subwindow,
2023-06-13 13:22:24 +00:00
which can be toggled to fullscreen.
2023-07-30 22:40:59 +00:00
1. [x] Improved and simplified GUI
- Moved all action buttons to file action bar except for switch-view
- Simplified navbar to 3 main actions: settings,search, and switch-view
2023-08-02 13:49:50 +00:00
- New search view on desktop
2023-07-17 05:32:43 +00:00
1. [x] Updated version and dependencies
2023-07-30 22:40:59 +00:00
- [x] Uses latest npm and node version
- [x] Removes deprecated npm packages
2023-06-16 17:29:43 +00:00
- [x] Updates golang dependencies
2023-09-03 17:40:09 +00:00
- [x] Remove all unnecessary packages, replaces with generic functions.
1. [x] **IMPORTANT** Moved all configurations to `filebrowser.yaml` . no more flags or binary operations to db
2023-08-17 21:46:49 +00:00
2023-06-13 13:15:11 +00:00
## About
2018-04-23 21:42:52 +00:00
2023-08-17 21:46:49 +00:00
Filebrowser provides a file managing interface within a specified directory
and it can be used to upload, delete, preview, rename and edit your files.
It allows the creation of multiple users and each user can have its own
2023-07-30 22:40:59 +00:00
directory. It can be used as a standalone app.
2018-04-23 21:42:52 +00:00
2023-08-17 21:46:49 +00:00
This repository is a fork, a collection of changes that make this program
2023-08-02 13:49:50 +00:00
work better in terms of asthetics and performance. Improved search,
simplified ui (without removing features) and more secure and up-to-date
2023-08-17 21:46:49 +00:00
build are just a few examples.
2023-08-02 13:49:50 +00:00
2023-08-17 21:46:49 +00:00
There are a few more changes needed to get it to a stable status where it
2023-08-02 13:49:50 +00:00
will only recieve security updates. These changes are mentioned above.
Once this is fully complete, the only updates to th
2023-08-02 13:31:04 +00:00
## Look
2023-08-02 13:49:50 +00:00
This is how desktop search looks in 0.1.3, the styling will be further refined in the next version.
2023-08-02 13:31:04 +00:00

However mobile search still appears very similar to filebrowser/filebrowsers original implementation:

search categories are improved:

2023-08-02 13:49:50 +00:00
## Performance
2023-08-17 21:46:49 +00:00
Search Performance - 100x faster search. However, this will be at expense of RAM. if you have < 1 million
files and folders in the given scope, the RAM usage should be less than 200MB total. RAM requirements
should scale based on the number of directories.
2023-08-02 13:49:50 +00:00
2023-08-17 21:46:49 +00:00
Also , the approx. time to fully index will vary widely based on performance. A sufficiently performant
2023-08-02 13:49:50 +00:00
system should fully index within the first 5 minutes, potentially within the first few seconds.
For example, a low end 11th gen i5 with SSD indexes 86K files within 1 second:
```
2023/08/01 00:08:29 Using config file: /.filebrowser.json
2023/08/01 00:08:29 Indexing files...
2023/08/01 00:08:29 Listening on [::]:8080
2023/08/01 00:08:30 Successfully indexed files.
2023/08/01 00:08:30 Files found : 85310
2023/08/01 00:08:30 Directories found : 1711
2023/08/01 00:08:30 Indexing scheduler will run every 5 minutes
```
2023-06-13 13:15:11 +00:00
## Install
2018-04-23 21:42:52 +00:00
2023-06-13 13:15:11 +00:00
Using docker:
2018-04-23 21:42:52 +00:00
2023-06-15 01:08:09 +00:00
1. docker run:
2018-04-23 21:42:52 +00:00
2023-06-13 13:15:11 +00:00
```
2023-08-02 13:49:50 +00:00
docker run -it -v /path/to/folder:/srv -p 8080:8080 gtstef/filebrowser
2023-06-13 13:15:11 +00:00
```
2018-04-23 21:42:52 +00:00
2023-06-13 13:15:11 +00:00
1. docker-compose:
- with local storage
2018-04-23 21:42:52 +00:00
2023-06-13 13:15:11 +00:00
```
version: '3.7'
services:
filebrowser:
volumes:
- '/path/to/folder:/srv'
#- './database/:/database/'
2023-07-29 15:16:09 +00:00
- './config.json:/.filebrowser.json'
2023-06-13 13:15:11 +00:00
ports:
2023-08-02 13:49:50 +00:00
- '8080:8080'
image: gtstef/filebrowser
2023-06-13 13:15:11 +00:00
```
2020-06-18 15:54:37 +00:00
2023-06-13 13:15:11 +00:00
- with network share
2020-06-18 15:54:37 +00:00
2023-06-13 13:15:11 +00:00
```
version: '3.7'
services:
filebrowser:
volumes:
- 'nas:/srv'
2023-06-15 01:08:09 +00:00
#- './database/:/database/'
2023-06-13 13:15:11 +00:00
#- './config.json:/.filebrowser.json'
ports:
- '8080:80'
2023-08-02 13:49:50 +00:00
image: gtstef/filebrowser
2023-06-13 13:15:11 +00:00
volumes:
nas:
driver_opts:
type: cifs
o: "username=myusername,password=mypassword,rw"
device: "//fileshare/"
```
2018-04-23 21:42:52 +00:00
2023-06-13 13:15:11 +00:00
## Configuration
2018-04-23 21:42:52 +00:00
2023-09-03 17:40:09 +00:00
All configuration is now done via a single configuration file: `filebrowser.yaml` , here is an example [configuration file ](./backend/filebrowser.yaml ).
### background
2023-07-29 15:16:09 +00:00
2023-09-03 17:40:09 +00:00
The original project filebrowser/filebrowser used multiple different ways to configure the server.
This was confusing and difficult to work with from a user and from a developer's perspective.
So I completely redesigned the program to use one single human-readable config file.