Configuration Files (v1.5.x)
This guide is for v1.5.x and older (stable). It uses the legacy database (database.db) and the flat server.database config format.
Looking for v2.0.0 (beta)? See the v2.0.0 configuration guide instead.
Planning to upgrade to v2.0.0?
v2.0.0 replaces the legacy database with a new database format and restructures configuration. Follow the v2 migration guide before upgrading.
What is a Config File?
A configuration file (config file) is a YAML file that defines how FileBrowser Quantum should work. While FileBrowser can run without a config file using default settings, a config file is generally necessary and allows you to customize:
- Server settings (port, database location, sources)
- Authentication methods (password, OIDC, proxy)
- User management and permissions
- Frontend customization (themes, branding)
- Media and office integrations
See an example config file on Github.
How to Specify a Config File
FileBrowser looks for configuration in the following order of priority:
1. Command Line Argument
| |
2. Environment Variable
3. Default Locations
- Current directory (
./config.yaml) - Docker default:
/home/filebrowser/data/config.yaml
Database Path Configuration
The database path is configured in the server.database setting. See Server configuration for details.
Default database locations:
- Standalone:
./database.db(current directory) - Docker: first checks
/home/filebrowser/data/database.db, then./database.db(current directory)
Priority for database path:
- Path specified in
config.yamlviaserver.database - Default location based on deployment type (standalone vs Docker)
Docker Configuration
Using Docker Run
Using Docker Compose
Mount a host directory on /home/filebrowser/data if you want config, database, and cache to persist across container restarts (see Docker setup).
Basic Configuration Example
Here’s a minimal config file to get you started:
Configuration Options
FileBrowser supports extensive configuration options. You can view the complete configuration reference at:
- Full config example: Full Config Example
- Current config: In the web UI, Admins can go to Settings > System & Admin > Load Config
Key Configuration Sections
- Server Settings: Port, database, sources, caching
- Authentication: Password, OIDC, proxy authentication
- UsersDefaults: New user defaults
- Frontend: UI customization, themes, branding
- Integrations: Media (FFmpeg) and office (OnlyOffice) support
Best Practices
1. Keep It Simple
Only configure the settings you need. A minimal config is easier to read and maintain:
2. Use Environment Variables for Secrets
Instead of putting secrets in your config file, use environment variables:
And set environment variables:
3. Restart After Changes
Configuration changes require a restart to take effect:
Next Steps
- Configuration Overview - Complete configuration guide
- Full Configuration Reference - All available options
- Source Configuration - Configure file sources
- Authentication Setup - Set up authentication methods