settings
Configuration Files
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
Docker Configuration
Using Docker Run
Using Docker Compose
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: Configuration Reference
- 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 defualts
- 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