Files

203 lines
6.8 KiB
PHP
Raw Permalink Normal View History

2017-03-10 18:25:12 -05:00
<?php
2026-10-05 18:10:18 -04:00
declare(strict_types=1);
2017-03-10 18:25:12 -05:00
return [
/*
|--------------------------------------------------------------------------
| Restricted Environment
|--------------------------------------------------------------------------
|
| Set this environment variable to true to enable a restricted configuration
| setup on the panel. When set to true, configurations stored in the
| database will not be applied.
*/
2022-10-14 10:59:20 -06:00
2021-01-23 12:09:16 -08:00
'load_environment_only' => (bool) env('APP_ENVIRONMENT_ONLY', false),
2017-03-10 18:25:12 -05:00
/*
|--------------------------------------------------------------------------
| Service Author
|--------------------------------------------------------------------------
|
| Each panel installation is assigned a unique UUID to identify the
| author of custom services, and make upgrades easier by identifying
| standard Pterodactyl shipped services.
*/
2022-10-14 10:59:20 -06:00
'service' => [
2017-11-04 16:27:15 -05:00
'author' => env('APP_SERVICE_AUTHOR', 'unknown@unknown.com'),
],
2017-03-10 18:25:12 -05:00
2017-04-14 17:10:01 -04:00
/*
|--------------------------------------------------------------------------
| Authentication
|--------------------------------------------------------------------------
|
| Should login success and failure events trigger an email to the user?
*/
2022-10-14 10:59:20 -06:00
2017-04-14 17:10:01 -04:00
'auth' => [
2026-10-11 19:15:22 -04:00
'2fa_required' => (int) env('APP_2FA_REQUIRED', 0),
2017-11-18 13:35:33 -05:00
'2fa' => [
'bytes' => 32,
2026-10-11 19:15:22 -04:00
'window' => (int) env('APP_2FA_WINDOW', 4),
2017-11-18 13:35:33 -05:00
'verify_newer' => true,
],
2017-04-14 17:10:01 -04:00
],
2017-03-16 19:54:31 -04:00
/*
|--------------------------------------------------------------------------
| Pagination
|--------------------------------------------------------------------------
|
| Certain pagination result counts can be configured here and will take
| effect globally.
*/
2022-10-14 10:59:20 -06:00
'paginate' => [
'frontend' => [
2026-10-11 19:15:22 -04:00
'servers' => (int) env('APP_PAGINATE_FRONT_SERVERS', 15),
],
2017-06-17 17:36:39 -05:00
'admin' => [
2026-10-11 19:15:22 -04:00
'servers' => (int) env('APP_PAGINATE_ADMIN_SERVERS', 25),
'users' => (int) env('APP_PAGINATE_ADMIN_USERS', 25),
2017-06-17 17:36:39 -05:00
],
'api' => [
2026-10-11 19:15:22 -04:00
'nodes' => (int) env('APP_PAGINATE_API_NODES', 25),
'servers' => (int) env('APP_PAGINATE_API_SERVERS', 25),
'users' => (int) env('APP_PAGINATE_API_USERS', 25),
2017-04-09 19:16:39 -04:00
],
],
/*
|--------------------------------------------------------------------------
| Guzzle Connections
|--------------------------------------------------------------------------
|
| Configure the timeout to be used for Guzzle connections here.
*/
2022-10-14 10:59:20 -06:00
'guzzle' => [
2026-10-11 19:15:22 -04:00
'timeout' => (int) env('GUZZLE_TIMEOUT', 15),
'connect_timeout' => (int) env('GUZZLE_CONNECT_TIMEOUT', 5),
],
2017-03-16 19:54:31 -04:00
/*
|--------------------------------------------------------------------------
| CDN
|--------------------------------------------------------------------------
|
| Information for the panel to use when contacting the CDN to confirm
| if panel is up to date.
*/
2022-10-14 10:59:20 -06:00
'cdn' => [
2017-08-23 21:34:11 -05:00
'cache_time' => 60,
'url' => 'https://cdn.pterodactyl.io/releases/latest.json',
],
2018-10-24 11:46:36 -04:00
/*
|--------------------------------------------------------------------------
| Client Features
|--------------------------------------------------------------------------
|
| Allow clients to create their own databases.
*/
2022-10-14 10:59:20 -06:00
'client_features' => [
'databases' => [
2026-10-11 02:45:41 -04:00
'enabled' => (bool) env('PTERODACTYL_CLIENT_DATABASES_ENABLED', true),
'allow_random' => (bool) env('PTERODACTYL_CLIENT_DATABASES_ALLOW_RANDOM', true),
],
2020-06-28 14:41:22 -07:00
'schedules' => [
// The total number of tasks that can exist for any given schedule at once.
2026-10-11 19:15:22 -04:00
'per_schedule_task_limit' => (int) env('PTERODACTYL_PER_SCHEDULE_TASK_LIMIT', 10),
2020-06-28 14:41:22 -07:00
],
'allocations' => [
2026-10-11 02:45:41 -04:00
'enabled' => (bool) env('PTERODACTYL_CLIENT_ALLOCATIONS_ENABLED', false),
'range_start' => env('PTERODACTYL_CLIENT_ALLOCATIONS_RANGE_START'),
'range_end' => env('PTERODACTYL_CLIENT_ALLOCATIONS_RANGE_END'),
],
2026-10-20 21:09:33 +02:00
'avatars' => [
2026-11-05 15:10:39 -05:00
'enabled' => (bool) env('PTERODACTYL_CLIENT_AVATARS_ENABLED', false),
2026-10-20 21:09:33 +02:00
],
],
2017-03-19 11:55:36 -04:00
/*
|--------------------------------------------------------------------------
| File Editor
|--------------------------------------------------------------------------
|
| This array includes the MIME filetypes that can be edited via the web.
*/
2022-10-14 10:59:20 -06:00
'files' => [
2026-10-11 19:15:22 -04:00
'max_edit_size' => (int) env('PTERODACTYL_FILES_MAX_EDIT_SIZE', 1024 * 1024 * 4),
],
/*
|--------------------------------------------------------------------------
| Dynamic Environment Variables
|--------------------------------------------------------------------------
|
| Place dynamic environment variables here that should be auto-appended
| to server environment fields when the server is created or updated.
|
| Items should be in 'key' => 'value' format, where key is the environment
| variable name, and value is the server-object key. For example:
|
| 'P_SERVER_CREATED_AT' => 'created_at'
*/
2022-10-14 10:59:20 -06:00
2020-07-02 21:11:16 -07:00
'environment_variables' => [
'P_SERVER_ALLOCATION_LIMIT' => 'allocation_limit',
],
/*
|--------------------------------------------------------------------------
| Asset Verification
|--------------------------------------------------------------------------
|
| This section controls the output format for JS & CSS assets.
*/
2022-10-14 10:59:20 -06:00
'assets' => [
2026-10-11 02:45:41 -04:00
'use_hash' => (bool) env('PTERODACTYL_USE_ASSET_HASH', false),
],
/*
|--------------------------------------------------------------------------
| Email Notification Settings
|--------------------------------------------------------------------------
|
| This section controls what notifications are sent to users.
*/
2022-10-14 10:59:20 -06:00
'email' => [
// Should an email be sent to a server owner once their server has completed it's first install process?
2026-10-11 02:45:41 -04:00
'send_install_notification' => (bool) env('PTERODACTYL_SEND_INSTALL_NOTIFICATION', true),
// Should an email be sent to a server owner whenever their server is reinstalled?
2026-10-11 02:45:41 -04:00
'send_reinstall_notification' => (bool) env('PTERODACTYL_SEND_REINSTALL_NOTIFICATION', true),
],
2022-11-22 13:39:43 -07:00
/*
|--------------------------------------------------------------------------
| Telemetry Settings
|--------------------------------------------------------------------------
|
| This section controls the telemetry sent by Pterodactyl.
*/
'telemetry' => [
2026-10-11 02:45:41 -04:00
'enabled' => (bool) env('PTERODACTYL_TELEMETRY_ENABLED', true),
2022-11-22 13:39:43 -07:00
],
'features' => [
'new_server_identifiers' => (bool) env('PTERODACTYL_USE_SERVER_IDENTIFIERS', false),
],
2017-03-10 18:25:12 -05:00
];