2017-03-10 23:25:12 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
2017-12-15 03:05:26 +00: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.
|
|
|
|
*/
|
2022-10-14 16:59:20 +00:00
|
|
|
|
2021-01-23 20:09:16 +00:00
|
|
|
'load_environment_only' => (bool) env('APP_ENVIRONMENT_ONLY', false),
|
2017-12-15 03:05:26 +00:00
|
|
|
|
2017-03-10 23:25:12 +00: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 16:59:20 +00:00
|
|
|
|
2017-03-17 01:11:15 +00:00
|
|
|
'service' => [
|
2017-11-04 21:27:15 +00:00
|
|
|
'author' => env('APP_SERVICE_AUTHOR', 'unknown@unknown.com'),
|
2017-03-17 01:11:15 +00:00
|
|
|
],
|
2017-03-10 23:25:12 +00:00
|
|
|
|
2017-04-14 21:10:01 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Authentication
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Should login success and failure events trigger an email to the user?
|
|
|
|
*/
|
2022-10-14 16:59:20 +00:00
|
|
|
|
2017-04-14 21:10:01 +00:00
|
|
|
'auth' => [
|
2017-12-15 03:05:26 +00:00
|
|
|
'2fa_required' => env('APP_2FA_REQUIRED', 0),
|
2017-11-18 18:35:33 +00:00
|
|
|
'2fa' => [
|
|
|
|
'bytes' => 32,
|
|
|
|
'window' => env('APP_2FA_WINDOW', 4),
|
|
|
|
'verify_newer' => true,
|
|
|
|
],
|
2017-04-14 21:10:01 +00:00
|
|
|
],
|
|
|
|
|
2017-03-16 23:54:31 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Pagination
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Certain pagination result counts can be configured here and will take
|
|
|
|
| effect globally.
|
|
|
|
*/
|
2022-10-14 16:59:20 +00:00
|
|
|
|
2017-03-17 01:11:15 +00:00
|
|
|
'paginate' => [
|
|
|
|
'frontend' => [
|
2017-04-09 20:04:08 +00:00
|
|
|
'servers' => env('APP_PAGINATE_FRONT_SERVERS', 15),
|
2017-03-17 01:11:15 +00:00
|
|
|
],
|
2017-06-17 22:36:39 +00:00
|
|
|
'admin' => [
|
2017-07-15 16:52:34 +00:00
|
|
|
'servers' => env('APP_PAGINATE_ADMIN_SERVERS', 25),
|
2017-06-17 22:36:39 +00:00
|
|
|
'users' => env('APP_PAGINATE_ADMIN_USERS', 25),
|
|
|
|
],
|
2017-04-09 20:04:08 +00: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-09 23:16:39 +00:00
|
|
|
],
|
2017-04-09 20:04:08 +00:00
|
|
|
],
|
|
|
|
|
2017-03-17 01:11:15 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Guzzle Connections
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Configure the timeout to be used for Guzzle connections here.
|
|
|
|
*/
|
2022-10-14 16:59:20 +00:00
|
|
|
|
2017-03-17 01:11:15 +00:00
|
|
|
'guzzle' => [
|
2022-02-05 17:33:52 +00:00
|
|
|
'timeout' => env('GUZZLE_TIMEOUT', 15),
|
|
|
|
'connect_timeout' => env('GUZZLE_CONNECT_TIMEOUT', 5),
|
2017-03-17 01:11:15 +00:00
|
|
|
],
|
2017-03-16 23:54:31 +00:00
|
|
|
|
2017-03-18 19:56:19 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| CDN
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Information for the panel to use when contacting the CDN to confirm
|
|
|
|
| if panel is up to date.
|
|
|
|
*/
|
2022-10-14 16:59:20 +00:00
|
|
|
|
2017-03-18 19:56:19 +00:00
|
|
|
'cdn' => [
|
2017-08-24 02:34:11 +00:00
|
|
|
'cache_time' => 60,
|
2017-03-18 19:56:19 +00:00
|
|
|
'url' => 'https://cdn.pterodactyl.io/releases/latest.json',
|
|
|
|
],
|
2018-10-24 15:46:36 +00:00
|
|
|
|
2018-10-24 15:43:51 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Client Features
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Allow clients to create their own databases.
|
|
|
|
*/
|
2022-10-14 16:59:20 +00:00
|
|
|
|
2018-10-24 15:43:51 +00:00
|
|
|
'client_features' => [
|
|
|
|
'databases' => [
|
|
|
|
'enabled' => env('PTERODACTYL_CLIENT_DATABASES_ENABLED', true),
|
|
|
|
'allow_random' => env('PTERODACTYL_CLIENT_DATABASES_ALLOW_RANDOM', true),
|
|
|
|
],
|
2020-06-28 21:41:22 +00:00
|
|
|
|
|
|
|
'schedules' => [
|
|
|
|
// The total number of tasks that can exist for any given schedule at once.
|
2021-08-20 17:07:05 +00:00
|
|
|
'per_schedule_task_limit' => env('PTERODACTYL_PER_SCHEDULE_TASK_LIMIT', 10),
|
2020-06-28 21:41:22 +00:00
|
|
|
],
|
2020-10-31 21:58:15 +00: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 15:43:51 +00:00
|
|
|
],
|
2017-03-19 15:55:36 +00:00
|
|
|
|
2017-08-19 03:19:06 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| File Editor
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This array includes the MIME filetypes that can be edited via the web.
|
|
|
|
*/
|
2022-10-14 16:59:20 +00:00
|
|
|
|
2017-08-19 03:19:06 +00:00
|
|
|
'files' => [
|
2020-08-23 22:55:26 +00:00
|
|
|
'max_edit_size' => env('PTERODACTYL_FILES_MAX_EDIT_SIZE', 1024 * 1024 * 4),
|
2017-08-19 03:19:06 +00:00
|
|
|
],
|
|
|
|
|
2017-10-27 04:49:54 +00: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'
|
|
|
|
*/
|
2022-10-14 16:59:20 +00:00
|
|
|
|
2020-07-03 04:11:16 +00:00
|
|
|
'environment_variables' => [
|
|
|
|
'P_SERVER_ALLOCATION_LIMIT' => 'allocation_limit',
|
|
|
|
],
|
2020-09-02 02:37:05 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Asset Verification
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This section controls the output format for JS & CSS assets.
|
|
|
|
*/
|
2022-10-14 16:59:20 +00:00
|
|
|
|
2020-09-02 02:37:05 +00:00
|
|
|
'assets' => [
|
|
|
|
'use_hash' => env('PTERODACTYL_USE_ASSET_HASH', false),
|
|
|
|
],
|
2022-09-25 19:16:58 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Email Notification Settings
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This section controls what notifications are sent to users.
|
|
|
|
*/
|
2022-10-14 16:59:20 +00:00
|
|
|
|
2022-09-25 19:16:58 +00:00
|
|
|
'email' => [
|
|
|
|
// Should an email be sent to a server owner once their server has completed it's first install process?
|
|
|
|
'send_install_notification' => env('PTERODACTYL_SEND_INSTALL_NOTIFICATION', true),
|
|
|
|
// Should an email be sent to a server owner whenever their server is reinstalled?
|
|
|
|
'send_reinstall_notification' => env('PTERODACTYL_SEND_REINSTALL_NOTIFICATION', true),
|
|
|
|
],
|
2017-03-10 23:25:12 +00:00
|
|
|
];
|