.env file for core configuration settings. This file is located in the root of your Panel installation.
Initial Setup
During installation, copy the example environment file:Core Application Settings
Application Environment
.env
string
default:"production"
Application environment. Use
production for live deployments, local for development.boolean
default:"false"
Enable debug mode. Shows detailed error messages with stack traces.
Application Identity
.env
string
default:"Pterodactyl"
Application name used in emails and UI elements.
string
required
The full URL where your Panel is accessible. Used for generating URLs in emails and console commands.Example:
https://panel.example.comstring
default:"en"
Default language locale for the application.
string
default:"UTC"
Default timezone for the application. See PHP timezones.
Encryption Key
.env
string
required
Application encryption key. Generated during installation with
php artisan key:generate.Theme Configuration
.env
string
default:"pterodactyl"
Active theme name. Custom themes should be placed in
resources/themes/.Security Settings
HashIDs Configuration
HashIDs are used to obfuscate internal database IDs in public-facing URLs..env
string
required
Random salt for HashID generation. Should be a long, random string.
integer
default:"8"
Minimum length of generated hash IDs.
Environment Restrictions
.env
boolean
default:"true"
When enabled, only environment variables are used for configuration. Recommended for security.
Logging Configuration
.env
string
default:"daily"
Logging channel to use. Options:
daily- Separate log file per daysingle- Single log filestack- Multiple channels
string
default:"debug"
Minimum log level. Options:
debug, info, notice, warning, error, critical, alert, emergencyGenerating the Application Key
After creating your.env file, generate an encryption key:
--force flag is required in production environments.
Next Steps
Email Configuration
Configure SMTP and email settings
Database Setup
Configure MySQL/MariaDB connection
Cache & Queues
Set up Redis, caching, and queue workers
Security Settings
Configure SSL, trusted proxies, and sessions
