Sources
Sources are the core concept in FileBrowser - each source represents a file system location users can access.
A source should not be a root directory or include “/var” directory on linux.
Basic Configuration
Single Source
When only one source is configured, source paths will be available at http://your-server/files/path/to/file.
Multiple Sources
Common Patterns
Personal User Directories
Creating user directories for each user where
Shared + Personal
Source Configuration Options
path
File system path. Can be relative or absolute. Required.
name
Display name for the source. Optional. If not set, uses the base name of the path.
config.defaultEnabled
Should be added as a default source for new users? Default: false.
config.defaultUserScope
This is the directory path that a user is given access to by default. This is also the parent directory path used if you enable createUserDir.
For example if the source is /, and you configure defaultUserScope: /users and also enable createUserDir, then a user named graham will have a scope directory created at /users/graham and that will be their root directory.
Defaults to root of index /. Should match folders under path. Used when createUserDir is false.
config.createUserDir
Create a user directory for each user under defaultUserScope + /+ username. Default: false.
This creates /home/users/username for each user. For example, a user graham would get a folder created at /home/users/graham and that would be their user scope. They wouldn’t be able to access /home/users/ folder.
config.denyByDefault
Deny access unless an “allow” access rule was specifically created. Default: false.
See Access Rules for more information.
config.private
Designate source as private – currently just means no sharing permitted. Default: false.
config.disabled
Disable the source. Useful so you don’t need to remove it from the config file. Default: false.
config.useLogicalSize
Calculate sizes based on logical size instead of disk utilization (du -sh). Folders will be 0 bytes when empty. Default: false.
config.rules
List of item rules to apply to specific paths. See Advanced Source Configuration for detailed information on rule options.
| |
Note on ignoreSymlinks: FileBrowser Quantum does not follow symbolic links during indexing by default. The ignoreSymlinks option allows you to exclude symlinks from the index entirely. See Symbolic Links documentation for more information.