.env.example to .env and configure the following variables:
Application Settings
The name of your application. This is used in emails and the user interface.
The application environment. Set to
production for production deployments.Options: local, production, stagingApplication encryption key. Generate using
php artisan key:generate.Enable debug mode. Set to
false in production to hide detailed error messages.The base URL of your application. Used for generating links.Example:
https://iptv.example.comMemory limit for media synchronization operations. Increase if syncing large media libraries.Example:
1024M, 2GLocalization
Default application locale for translations.
Fallback locale when translation is not available in the current locale.
Locale for generating fake data during development and testing.
Performance & Security
Driver for maintenance mode storage.Options:
file, databaseNumber of PHP CLI server worker processes.
Number of bcrypt hashing rounds for password encryption. Higher values are more secure but slower.
Logging
Default log channel for application logging.Options:
stack, single, daily, slack, syslog, stderrLog 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
Database driver to use.Options:
sqlite, mysql, pgsql, sqlsrvDatabase host. Only required for MySQL, PostgreSQL, or SQL Server.
Database port. Only required for MySQL, PostgreSQL, or SQL Server.
Database name. For SQLite, this is the path to the database file.
Database username. Not required for SQLite.
Database password. Not required for SQLite.
Session & Cache
Session storage driver.Options:
file, cookie, database, memcached, redis, arraySession lifetime in minutes.
Encrypt session data.
Session cookie path.
Session cookie domain.
Default cache store.Options:
file, database, memcached, redis, arrayPrefix for cache keys. Useful when sharing cache infrastructure.
Queue
Queue driver for background job processing.Options:
sync, database, redis, sqs, beanstalkdUse
database for simple setups. Use redis for better performance in production.File Storage
Default filesystem disk for file storage.Options:
local, public, s3Broadcast driver for real-time events.Options:
log, pusher, redis, ablyExternal Services
MeiliSearch
Search driver. Lionz IPTV Downloader uses MeiliSearch for content search.
Queue search index updates for better performance.
MeiliSearch server URL.Example:
http://localhost:7700MeiliSearch master key for authentication. Required if MeiliSearch is configured with a key.
Aria2
See Aria2 Configuration for detailed aria2 settings.Aria2 RPC server host URL.
Aria2 RPC server port.
Aria2 RPC secret token for authentication. Must match
rpc-secret in aria2.conf.Root directory for downloaded files. Must match the
dir setting in aria2.conf.Xtream Codes API
See Xtream Codes Configuration for detailed API setup.Lionz TV Xtream Codes API host URL.Example:
http://api.lionz.tvXtream Codes API port.
Your Lionz TV account username.
Your Lionz TV account password.
User agent string for HTTP requests to the Xtream Codes API.
Mail driver for sending emails.Options:
smtp, sendmail, mailgun, ses, postmark, logSMTP server host.
SMTP server port.
SMTP authentication username.
SMTP authentication password.
Default “from” email address.
Default “from” name for emails.
Redis
Redis client library.Options:
phpredis, predisRedis server host.
Redis server password.
Redis server port.
AWS
AWS access key ID for S3 storage.
AWS secret access key for S3 storage.
AWS region for S3 storage.
S3 bucket name for file storage.
Use path-style endpoint for S3 (required for MinIO).
Development Tools
Enable Laravel Telescope debugging dashboard.
Set to
false in production or if you don’t need debugging tools.Application name for Vite asset compilation.
Feature Flags
Enable direct download links for media files.When enabled, users can download files directly from the storage location without going through the application.
Example Configuration
.env