2017-03-11 00:25:12 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
2017-12-15 04:05:26 +01:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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.
|
|
|
|
*/
|
2021-01-23 21:09:16 +01:00
|
|
|
'load_environment_only' => (bool) env('APP_ENVIRONMENT_ONLY', false),
|
2017-12-15 04:05:26 +01:00
|
|
|
|
2017-03-11 00:25:12 +01: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.
|
|
|
|
*/
|
2017-03-17 02:11:15 +01:00
|
|
|
'service' => [
|
2017-11-04 22:27:15 +01:00
|
|
|
'author' => env('APP_SERVICE_AUTHOR', 'unknown@unknown.com'),
|
2017-03-17 02:11:15 +01:00
|
|
|
],
|
2017-03-11 00:25:12 +01:00
|
|
|
|
2017-04-14 23:10:01 +02:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Authentication
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Should login success and failure events trigger an email to the user?
|
|
|
|
*/
|
|
|
|
'auth' => [
|
2017-12-15 04:05:26 +01:00
|
|
|
'2fa_required' => env('APP_2FA_REQUIRED', 0),
|
2017-11-18 19:35:33 +01:00
|
|
|
'2fa' => [
|
|
|
|
'bytes' => 32,
|
|
|
|
'window' => env('APP_2FA_WINDOW', 4),
|
|
|
|
'verify_newer' => true,
|
|
|
|
],
|
2017-04-14 23:10:01 +02:00
|
|
|
],
|
|
|
|
|
2017-03-17 00:54:31 +01:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Pagination
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Certain pagination result counts can be configured here and will take
|
|
|
|
| effect globally.
|
|
|
|
*/
|
2017-03-17 02:11:15 +01:00
|
|
|
'paginate' => [
|
|
|
|
'frontend' => [
|
2017-04-09 22:04:08 +02:00
|
|
|
'servers' => env('APP_PAGINATE_FRONT_SERVERS', 15),
|
2017-03-17 02:11:15 +01:00
|
|
|
],
|
2017-06-18 00:36:39 +02:00
|
|
|
'admin' => [
|
2017-07-15 18:52:34 +02:00
|
|
|
'servers' => env('APP_PAGINATE_ADMIN_SERVERS', 25),
|
2017-06-18 00:36:39 +02:00
|
|
|
'users' => env('APP_PAGINATE_ADMIN_USERS', 25),
|
|
|
|
],
|
2017-04-09 22:04:08 +02:00
|
|
|
'api' => [
|
|
|
|
'nodes' => env('APP_PAGINATE_API_NODES', 25),
|
|
|
|
'servers' => env('APP_PAGINATE_API_SERVERS', 25),
|
|
|
|
'users' => env('APP_PAGINATE_API_USERS', 25),
|
2017-04-10 01:16:39 +02:00
|
|
|
],
|
2017-04-09 22:04:08 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| API Options
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Configuration options for the API.
|
|
|
|
*/
|
|
|
|
'api' => [
|
2017-04-09 22:05:18 +02:00
|
|
|
'include_on_list' => env('API_INCLUDE_ON_LIST', false),
|
2017-09-24 19:34:00 +02:00
|
|
|
'key_expire_time' => env('API_KEY_EXPIRE_TIME', 60 * 12),
|
2017-03-17 02:11:15 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Guzzle Connections
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Configure the timeout to be used for Guzzle connections here.
|
|
|
|
*/
|
|
|
|
'guzzle' => [
|
2020-08-07 05:25:35 +02:00
|
|
|
'timeout' => env('GUZZLE_TIMEOUT', 30),
|
|
|
|
'connect_timeout' => env('GUZZLE_CONNECT_TIMEOUT', 10),
|
2017-03-17 02:11:15 +01:00
|
|
|
],
|
2017-03-17 00:54:31 +01:00
|
|
|
|
2017-03-18 20:56:19 +01:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Queue Names
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Configure the names of queues to be used in the database.
|
|
|
|
*/
|
|
|
|
'queues' => [
|
|
|
|
'low' => env('QUEUE_LOW', 'low'),
|
|
|
|
'standard' => env('QUEUE_STANDARD', 'standard'),
|
|
|
|
'high' => env('QUEUE_HIGH', 'high'),
|
|
|
|
],
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Task Timers
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| The amount of time in minutes before performing certain actions on the system.
|
|
|
|
*/
|
|
|
|
'tasks' => [
|
|
|
|
'clear_log' => env('PTERODACTYL_CLEAR_TASKLOG', 720),
|
|
|
|
'delete_server' => env('PTERODACTYL_DELETE_MINUTES', 10),
|
|
|
|
],
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| CDN
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Information for the panel to use when contacting the CDN to confirm
|
|
|
|
| if panel is up to date.
|
|
|
|
*/
|
|
|
|
'cdn' => [
|
2017-08-24 04:34:11 +02:00
|
|
|
'cache_time' => 60,
|
2017-03-18 20:56:19 +01:00
|
|
|
'url' => 'https://cdn.pterodactyl.io/releases/latest.json',
|
|
|
|
],
|
2018-10-24 17:46:36 +02:00
|
|
|
|
2018-10-24 17:43:51 +02:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Client Features
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Allow clients to create their own databases.
|
|
|
|
*/
|
|
|
|
'client_features' => [
|
|
|
|
'databases' => [
|
|
|
|
'enabled' => env('PTERODACTYL_CLIENT_DATABASES_ENABLED', true),
|
|
|
|
'allow_random' => env('PTERODACTYL_CLIENT_DATABASES_ALLOW_RANDOM', true),
|
|
|
|
],
|
2020-06-28 23:41:22 +02:00
|
|
|
|
|
|
|
'schedules' => [
|
|
|
|
// The total number of tasks that can exist for any given schedule at once.
|
|
|
|
'per_schedule_task_limit' => 10,
|
|
|
|
],
|
2020-10-31 22:58:15 +01:00
|
|
|
|
|
|
|
'allocations' => [
|
|
|
|
'enabled' => env('PTERODACTYL_CLIENT_ALLOCATIONS_ENABLED', false),
|
|
|
|
'range_start' => env('PTERODACTYL_CLIENT_ALLOCATIONS_RANGE_START'),
|
|
|
|
'range_end' => env('PTERODACTYL_CLIENT_ALLOCATIONS_RANGE_END'),
|
|
|
|
],
|
2018-10-24 17:43:51 +02:00
|
|
|
],
|
2017-03-19 16:55:36 +01:00
|
|
|
|
2017-08-19 05:19:06 +02:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| File Editor
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This array includes the MIME filetypes that can be edited via the web.
|
|
|
|
*/
|
|
|
|
'files' => [
|
2020-08-24 00:55:26 +02:00
|
|
|
'max_edit_size' => env('PTERODACTYL_FILES_MAX_EDIT_SIZE', 1024 * 1024 * 4),
|
2017-08-19 05:19:06 +02:00
|
|
|
],
|
|
|
|
|
2017-04-02 19:19:39 +02:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| JSON Response Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| You should not edit this block. These routes are ajax based routes that
|
|
|
|
| expect content to be returned in JSON format.
|
|
|
|
*/
|
|
|
|
'json_routes' => [
|
|
|
|
'api/*',
|
|
|
|
'daemon/*',
|
|
|
|
'remote/*',
|
|
|
|
],
|
2017-10-27 06:49:54 +02:00
|
|
|
|
2017-11-05 22:36:37 +01:00
|
|
|
'default_api_version' => 'application/vnd.pterodactyl.v1+json',
|
|
|
|
|
2017-10-27 06:49:54 +02:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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'
|
|
|
|
*/
|
2020-07-03 06:11:16 +02:00
|
|
|
'environment_variables' => [
|
|
|
|
'P_SERVER_ALLOCATION_LIMIT' => 'allocation_limit',
|
|
|
|
],
|
2020-09-02 04:37:05 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Asset Verification
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This section controls the output format for JS & CSS assets.
|
|
|
|
*/
|
|
|
|
'assets' => [
|
|
|
|
'use_hash' => env('PTERODACTYL_USE_ASSET_HASH', false),
|
|
|
|
],
|
2017-03-11 00:25:12 +01:00
|
|
|
];
|