Gobiadactyl Panel configuration
Every setting in the Gobiadactyl Panel .env file, what it does and its default, including the updater, backups, templates and file transfers.
On this page
Gobiadactyl Panel reads its settings from the .env file in the panel directory, /var/www/pterodactyl/.env in the standard layout. The install commands p:environment:setup, p:environment:database and p:environment:mail write most of the basic settings for you. Everything else you add by hand.
After changing .env, clear the configuration cache and restart the queue worker so both pick up the change:
cd /var/www/pterodactyl
sudo -u www-data php artisan config:clear
sudo systemctl restart pteroq.service.env holds APP_KEY, the database password and any update token. Keep a backup somewhere safe, keep it readable only by the panel's user, and never commit it.
Application#
| Variable | Default in .env.example | What it does |
|---|---|---|
APP_ENV | production | Leave on production on a real server |
APP_DEBUG | false | Shows detailed errors. Never turn it on in production. |
APP_KEY | empty | Encryption key, made by php artisan key:generate. Keep it stable; changing or losing it makes encrypted data unreadable. |
APP_URL | http://panel.example.com | The panel's public address, including https://. The updater's health check also requests it. |
APP_TIMEZONE | UTC | Timezone for times shown in the panel |
APP_LOCALE | en | Interface language |
APP_ENVIRONMENT_ONLY | true | true keeps all settings in .env; false also allows the settings editor in the admin area. p:environment:setup asks about it. |
HASHIDS_SALT | empty | Salt for short IDs, created by p:environment:setup. Keep it stable. |
HASHIDS_LENGTH | 8 | Length of those IDs |
Database#
| Variable | Default | What it does |
|---|---|---|
DB_CONNECTION | mysql | Used for both MariaDB and MySQL |
DB_HOST | 127.0.0.1 | Database server |
DB_PORT | 3306 | Database port |
DB_DATABASE | panel | Database name |
DB_USERNAME | pterodactyl | Database user |
DB_PASSWORD | empty | Database password |
Cache, sessions and queue#
| Variable | Default | What it does |
|---|---|---|
CACHE_DRIVER | file | redis (recommended), memcached or file |
SESSION_DRIVER | file | redis (recommended), memcached, database, file or cookie |
QUEUE_CONNECTION | redis | redis (recommended), database or sync. With sync there is no worker; the updater warns about it and offsite backups need a real worker. |
REDIS_HOST | 127.0.0.1 | Redis server |
REDIS_PASSWORD | null | Redis password |
REDIS_PORT | 6379 | Redis port |
SESSION_SECURE_COOKIE | not set | Set to true when the panel runs on HTTPS, so session cookies are only sent over HTTPS |
TRUSTED_PROXIES | not set | Addresses of a proxy or load balancer in front of the panel |
Mail#
| Variable | Default | What it does |
|---|---|---|
MAIL_MAILER | smtp | Mail transport |
MAIL_HOST | smtp.example.com | SMTP server |
MAIL_PORT | 25 | SMTP port |
MAIL_USERNAME, MAIL_PASSWORD | empty | SMTP login |
MAIL_ENCRYPTION | tls | SMTP encryption |
MAIL_FROM_ADDRESS | [email protected] | Sender address |
MAIL_FROM_NAME | "Pterodactyl Panel" | Sender name |
MAIL_EHLO_DOMAIN | commented out | Set it to your domain so mail servers such as Gmail do not reject your mail |
Logging#
| Variable | Default | What it does |
|---|---|---|
LOG_CHANNEL | daily | One log file per day in storage/logs |
LOG_LEVEL | debug | How much is logged |
LOG_DEPRECATIONS_CHANNEL | null | Where deprecation notices go |
Updater#
These settings belong to Gobia Core and control the in-panel updater. No browser request can change them. See Update Gobiadactyl Panel.
| Variable | Default | What it does |
|---|---|---|
GOBIA_UPDATE_PROVIDER | github | github reads releases from a GitHub repository. directory installs from a local folder, for air-gapped servers and testing. |
GOBIA_UPDATE_REPOSITORY | an older repository name that GitHub redirects to the public one | The only GitHub repository releases are taken from. Set it to darkzmaj/gobiadactyl-panel. |
GOBIA_UPDATE_GITHUB_TOKEN | not set | A fine-grained token with read-only Contents access. Only needed for a private repository; the public releases need none. Never sent to the browser and removed from logs. |
GOBIA_UPDATE_DIRECTORY | not set | The folder for the directory provider, laid out as <folder>/<version>/ with release.json and the package |
GOBIA_UPDATE_PUBLIC_KEY | the Gobia 2.0 release key | Base64 Ed25519 public key every release must be signed with |
GOBIA_UPDATE_RUNNER | in-place, or release-directory when GOBIA_UPDATE_INSTALL_ROOT is set | How new code goes live |
GOBIA_UPDATE_INSTALL_ROOT | not set | Root of a release-directory install, containing releases/, shared/ and the current link |
GOBIA_UPDATE_HELPER | /usr/local/sbin/gobia-update-helper | The root-owned helper script. Optional for in-place. |
GOBIA_UPDATE_STATE_PATH | storage/updater | Where run records, logs, downloads and database backups are kept. Must survive a release switch. |
GOBIA_UPDATE_BACKUP_RETENTION | 3 | How many update backups are kept. Only the newest can be rolled back. |
GOBIA_UPDATE_CHECK_TTL | 21600 | Seconds the "latest release" answer is cached. Check for updates always asks again. |
GOBIA_UPDATE_HTTP_PROBE | on | After an update, request the sign-in page over HTTP as part of the health check |
GOBIA_UPDATE_HEALTH_URL | APP_URL | The address that probe requests |
GOBIA_UPDATE_PHP_BINARY, GOBIA_UPDATE_MYSQLDUMP, GOBIA_UPDATE_MYSQL | looked up on PATH | Absolute paths when the programs are not on the PHP user's PATH |
GOBIA_UPDATE_PRERELEASE | off | Also offer pre-releases such as 2.1.0-rc.1. Leave off in production. |
GOBIA_UPDATE_ALLOW_UNSIGNED | off | Accept a release without a signature. Development only; never in production. |
GOBIA_UPDATE_SPAWN_QUEUE_WORKER | off | Start a replacement worker after switching releases. Development only; production uses systemd. |
Fixed limits that are not settings: a download may be at most 512 MiB, the unpacked release at most 1,536 MiB, with at most 200,000 entries.
Offsite backups#
Settings of the gobia-backups extension. See Backups.
| Variable | Default | What it does |
|---|---|---|
GOBIA_BACKUPS_CONCURRENCY | 6 | Backups running at once overall |
GOBIA_BACKUPS_CONCURRENCY_PER_NODE | 2 | Backups running at once per node |
GOBIA_BACKUPS_CONCURRENCY_PER_DESTINATION | 4 | Backups running at once per Storage Box. A Storage Box accepts ten connections per account. |
GOBIA_BACKUPS_ARCHIVE_TIMEOUT | 21600 | Seconds Wings may take to build the archive |
GOBIA_BACKUPS_TRANSFER_TIMEOUT | 21600 | Seconds one upload or restore may take |
GOBIA_BACKUPS_STALE_AFTER | 900 | Seconds an upload may make no progress before it counts as dead |
GOBIA_BACKUPS_ATTEMPTS | 3 | Attempts in total for a failed backup |
GOBIA_BACKUPS_RETRY_AFTER | 600 | Seconds between attempts |
Templates#
Settings of the gobia-templates extension.
| Variable | Default | What it does |
|---|---|---|
GOBIA_TEMPLATE_STORAGE | storage/app/private/templates | Where template files are kept. It is not served by the web server. |
GOBIA_TEMPLATE_MAX_FILE_BYTES | 1 GiB | Largest single file in a template |
GOBIA_TEMPLATE_MAX_TOTAL_BYTES | 8 GiB | Largest total size of one template |
GOBIA_TEMPLATE_MAX_FILES | 10000 | Most files in one template |
GOBIA_SFTP_SERVICE_TOKEN | not set | Shared secret for the template SFTP service |
GOBIA_SFTP_HOST, GOBIA_SFTP_PORT | not set, 2223 | The SFTP address shown to administrators |
Files larger than 2 MiB are not opened in the browser editor, but can still be uploaded and downloaded.
Template SFTP service#
SFTP access to a template's files is a separate Node.js process in services/template-sftp. It is optional, and it is the only part of Gobia that needs Node.js. It reads these variables:
| Variable | What it does |
|---|---|
PANEL_URL | Base address of the panel |
SFTP_SERVICE_TOKEN | The same value as GOBIA_SFTP_SERVICE_TOKEN |
TEMPLATE_STORAGE | The panel's template folder, the same as GOBIA_TEMPLATE_STORAGE |
SFTP_PORT, SFTP_BIND | Listen address, 2223 and 0.0.0.0 by default |
SFTP_HOST_KEY | Path of the Ed25519 host key, created if missing |
Start it with npm ci --omit=dev && node server.js in that folder.
File transfers between servers#
Settings of the gobia-files extension, which moves files between servers through the panel.
| Variable | Default | What it does |
|---|---|---|
GOBIA_FILES_TRANSFER_MAX_FILE_BYTES | 2 GiB | Largest single file moved |
GOBIA_FILES_TRANSFER_MAX_ENTRIES | 2000 | Most files and folders one request may touch |
GOBIA_FILES_TRANSFER_MAX_DEPTH | 24 | Deepest folder nesting followed |
GOBIA_FILES_TRANSFER_VERIFY_HASH_BYTES | 256 MiB | Files up to this size are compared by SHA-256 after the move; larger ones by size only |
GOBIA_FILES_TRANSFER_TIMEOUT | 900 | Seconds one request to a node may take |
GOBIA_FILES_TRANSFER_CONCURRENT_PER_USER | 2 | Transfers one person may run at once. Each holds a PHP worker and temporary disk space. |
Source: Gobiadactyl Panel .env.example, app/Console/Commands/Environment/AppSettingsCommand.php, config/session.php, config/trustedproxy.php and the config files of gobia-core, gobia-backups, gobia-templates and gobia-files, plus services/template-sftp/README.md, at tag gobia-v2.0.0, checked 2 November 2026.