Source Configuration
What are Sources?
Sources are the directories that FileBrowser Quantum makes available to users. Each source represents a filesystem path that can be browsed, searched, and managed through the web interface.
Getting Started: For basic usage, you only need to define the path and optionally set defaultEnabled set to true to give the source to all new users. Most other configuration options can be left at their defaults.
Source Basics
Unique Paths Required
Each source must have a unique real filesystem path. FileBrowser uses the actual resolved path on the filesystem to identify sources internally, not the name you assign.
Source Names
Automatic naming: If you don’t specify a name, FileBrowser automatically assigns one based on the base folder name.
Custom naming: You can specify a custom display name:
Name Changes Safe: You can change a source’s name at any time. The backend matches sources by their real filesystem path, so existing access rules and shares will continue to work.
Minimal Configuration
The simplest source configuration:
This creates a source that:
- Is available to all new users
- Has indexing enabled for advanced features
- Uses all default settings
Indexing Overview
Sources are indexed by default, which enables:
- Search functionality - Fast full-text and filename search
- Folder size calculations - Accurate directory size reporting
- Folder previews - Thumbnail previews for image directories
- Health monitoring - Source statistics and health information
Performance: Indexing uses adaptive scanning intervals based on filesystem complexity. For typical filesystems (under 50,000 items), expect scan times under 30 seconds with minimal memory usage (100-300MB). Larger filesystems may require more resources but benefit from smart interval adjustments that reduce scan frequency.
For detailed indexing information, see Understanding Indexing.
Configuration Options
path (required)
| |
The filesystem path to the directory you want to serve. Can be absolute or relative, but must exist and be readable by FileBrowser.
name
| |
Display name shown in the UI. If not specified, uses the base folder name from the path. Useful for providing user-friendly names like “Company Files” instead of just “documents”.
defaultEnabled
Whether new users automatically get access to this source. Defaults to false. Set to true for shared sources that all users should see.
denyByDefault
Deny access unless an explicit “allow” access rule exists. Defaults to false. Use this for high-security sources where access must be explicitly granted per user or group.
When denyByDefault: true, users need explicit allow rules to access the source.
See Access Control Guide for more information.
private
Designate source as private, which disables sharing. Defaults to false. Use this to prevent users from creating public shares for sensitive data.
defaultUserScope
Default scope path for new users created automatically via API or CLI. Defaults to "/" (root of source). This restricts where new users can access within the source. Include the leading slash.
Works with createUserDir to place users in specific locations:
New users will only see /shared/users and its subdirectories.
createUserDir
Automatically create a directory for each new user. Defaults to false. When enabled:
- Creates
{defaultUserScope}/{username}on user creation - Updates user scope to their personal directory
- Directory persists even if user is deleted
Example:
Creates /home/john for user “john” and sets their scope to that directory.
disabled
Disable the source without removing it from config. Defaults to false. Useful for temporarily disabling a source for maintenance or testing. Users cannot access disabled sources.
disableIndexing
Completely disable indexing for this source. Defaults to false.
When indexing is disabled, these features will not work:
- Search functionality
- Folder size calculations
- Folder preview images
- Source statistics and health monitoring
- Many future enhancements
Users can still browse files, but with significantly reduced functionality.
Only disable if you have specific performance requirements and don’t need search or size information.
indexingIntervalMinutes
Force a specific scan interval in minutes. Defaults to 0 which uses smart scanning.
Not Recommended: The default smart scanning behavior adapts to your filesystem and is optimal for most use cases. Only set this if you have specific requirements.
When to use:
- You need guaranteed scan intervals for compliance
- Your filesystem has predictable, regular update patterns
- Smart scanning doesn’t suit your specific workload
How it works: Performs 4 quick scans at the specified interval, then 1 full scan.
conditionals
Control which files and folders are indexed. See Conditional Rules Guide for complete documentation.
Common Configuration Patterns
Single Shared Source
Use case: Simple shared file access
Multi-User with Personal Directories
Use case: Each user gets private space
Departmental Sources
Use case: Multiple departments with access control
Use access rules to control who sees what.
Best Practices
- Start Simple - Begin with minimal configuration and add options as needed
- Use Real Paths - Always use absolute paths for production deployments
- Plan Access Control - Design your access strategy before creating multiple sources
- Monitor Resources - Watch memory/CPU usage after adding sources with large filesystems