Overview
Filebright uses environment variables to configure the application, database connections, AI services, and other runtime settings. All configuration is managed through a.env file in the backend directory.
Application settings
The application name used in emails and other user-facing locations.
The application environment. Set to
production for production deployments.Options: local, staging, productionApplication encryption key. Generate using
php artisan key:generate.Enable debug mode to display detailed error messages. Set to
false in production.The base URL of your application. Used for generating links and API references.
Localization
The default locale for the application.
The fallback locale when the current locale is unavailable.
Locale for generating fake data during testing.
Security
The number of bcrypt rounds used for password hashing. Higher values increase security but require more processing time.
Logging
The default log channel for the application.Options:
stack, single, daily, slack, syslog, errorlogThe log stack configuration when using the stack channel.
Minimum log level to record.Options:
debug, info, notice, warning, error, critical, alert, emergencyChannel for logging deprecation warnings.
Database
The default database connection to use.Options:
sqlite, mysql, pgsql, sqlsrvFor production deployments with Docker, use
pgsql (PostgreSQL).Database host address. Use
db when running with Docker Compose.Database port. Default is 5432 for PostgreSQL, 3306 for MySQL.
Database name.
Database username.
Database password.
MongoDB
MongoDB connection string for vector storage.Example:
mongodb://localhost:27017MongoDB database name for storing document chunks and embeddings.
Session
Session storage driver.Options:
file, cookie, database, memcached, redis, arraySession lifetime in minutes.
Whether to encrypt session data.
Session cookie path.
Session cookie domain.
Queue
Queue driver for processing background jobs (document parsing, embedding generation).Options:
sync, database, beanstalkd, sqs, redisBroadcast driver for real-time events.
Cache
Cache driver for storing temporary data.Options:
file, database, redis, memcached, arrayOptional prefix for cache keys to avoid collisions.
File storage
Default filesystem disk for storing uploaded documents.Options:
local, public, s3Redis (optional)
Redis client library.Options:
phpredis, predisRedis server host.
Redis server password if authentication is enabled.
Redis server port.
Mail driver for sending emails.Options:
smtp, sendmail, mailgun, ses, postmark, log, arraySMTP server host.
SMTP server port.
SMTP username for authentication.
SMTP password for authentication.
Default sender email address.
Default sender name.
AWS (optional)
AWS access key ID for S3 storage.
AWS secret access key for S3 storage.
AWS region for S3 bucket.
S3 bucket name for file storage.
Whether to use path-style endpoints for S3.
OpenRouter API
Your OpenRouter API key for accessing embeddings and chat models.Get your API key from OpenRouter.
The embedding model to use for generating document embeddings.See AI integration for available models.
The chat model to use for RAG-based question answering.See AI integration for available models.
Example configuration
Next steps
Database setup
Configure PostgreSQL and MongoDB
AI integration
Set up OpenRouter API for embeddings and chat