2017-03-10 23:25:12 +00:00
|
|
|
<?php
|
|
|
|
|
2017-12-15 03:05:26 +00:00
|
|
|
|
2017-03-10 23:25:12 +00:00
|
|
|
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.
|
|
|
|
*/
|
|
|
|
'load_environment_only' => (bool) env('APP_ENVIRONMENT_ONLY', false),
|
|
|
|
|
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.
|
|
|
|
*/
|
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?
|
|
|
|
*/
|
|
|
|
'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.
|
|
|
|
*/
|
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-08-21 00:23:50 +00:00
|
|
|
'packs' => env('APP_PAGINATE_ADMIN_PACKS', 50),
|
2017-06-17 22:36:39 +00:00
|
|
|
],
|
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
|
|
|
],
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| API Options
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Configuration options for the API.
|
|
|
|
*/
|
|
|
|
'api' => [
|
2017-04-09 20:05:18 +00:00
|
|
|
'include_on_list' => env('API_INCLUDE_ON_LIST', false),
|
2017-09-24 17:34:00 +00:00
|
|
|
'key_expire_time' => env('API_KEY_EXPIRE_TIME', 60 * 12),
|
2017-03-17 01:11:15 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Guzzle Connections
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Configure the timeout to be used for Guzzle connections here.
|
|
|
|
*/
|
|
|
|
'guzzle' => [
|
|
|
|
'timeout' => env('GUZZLE_TIMEOUT', 5),
|
|
|
|
'connect_timeout' => env('GUZZLE_CONNECT_TIMEOUT', 3),
|
|
|
|
],
|
2017-03-16 23:54:31 +00:00
|
|
|
|
2017-03-18 19:56:19 +00: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'),
|
|
|
|
],
|
|
|
|
|
2017-03-19 15:04:03 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Console Configuration
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Configure the speed at which data is rendered to the console.
|
|
|
|
*/
|
|
|
|
'console' => [
|
|
|
|
'count' => env('CONSOLE_PUSH_COUNT', 10),
|
|
|
|
'frequency' => env('CONSOLE_PUSH_FREQ', 200),
|
|
|
|
],
|
|
|
|
|
2017-10-01 00:23:44 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Daemon Connection Details
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Configuration for support of the new Golang based daemon.
|
|
|
|
*/
|
|
|
|
'daemon' => [
|
2017-10-01 02:00:24 +00:00
|
|
|
'use_new_daemon' => (bool) env('APP_USE_NEW_DAEMON', false),
|
2017-10-01 00:23:44 +00:00
|
|
|
],
|
|
|
|
|
2017-03-18 19:56:19 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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 02:34:11 +00:00
|
|
|
'cache_time' => 60,
|
2017-03-18 19:56:19 +00:00
|
|
|
'url' => 'https://cdn.pterodactyl.io/releases/latest.json',
|
|
|
|
],
|
2017-03-19 15:55:36 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Language Editor
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Set `PHRASE_IN_CONTEXT` to true to enable the PhaseApp in-context editor
|
|
|
|
| on this site which allows you to translate the panel, from the panel.
|
|
|
|
*/
|
|
|
|
'lang' => [
|
|
|
|
'in_context' => env('PHRASE_IN_CONTEXT', false),
|
2018-05-04 10:56:30 +00:00
|
|
|
'global' => env('LANG_MUST_BE_GLOBAL', false),
|
2017-03-19 15:55:36 +00:00
|
|
|
],
|
2017-04-02 17:19:39 +00:00
|
|
|
|
2018-03-02 03:27:37 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Language Editor
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Set `PHRASE_IN_CONTEXT` to true to enable the PhaseApp in-context editor
|
|
|
|
| on this site which allows you to translate the panel, from the panel.
|
|
|
|
*/
|
|
|
|
'client_features' => [
|
|
|
|
'databases' => [
|
|
|
|
'enabled' => env('PTERODACTYL_CLIENT_DATABASES_ENABLED', true),
|
|
|
|
'allow_random' => env('PTERODACTYL_CLIENT_DATABASES_ALLOW_RANDOM', true),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2017-08-19 03:19:06 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| File Editor
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This array includes the MIME filetypes that can be edited via the web.
|
|
|
|
*/
|
|
|
|
'files' => [
|
2017-08-26 23:08:11 +00:00
|
|
|
'max_edit_size' => env('PTERODACTYL_FILES_MAX_EDIT_SIZE', 50000),
|
2017-08-19 03:19:06 +00:00
|
|
|
'editable' => [
|
|
|
|
'application/json',
|
|
|
|
'application/javascript',
|
|
|
|
'application/xml',
|
|
|
|
'application/xhtml+xml',
|
|
|
|
'inode/x-empty',
|
|
|
|
'text/xml',
|
|
|
|
'text/css',
|
|
|
|
'text/html',
|
|
|
|
'text/plain',
|
|
|
|
'text/x-perl',
|
|
|
|
'text/x-shellscript',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2017-04-02 17:19:39 +00: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 04:49:54 +00:00
|
|
|
|
2017-11-05 21:36:37 +00:00
|
|
|
'default_api_version' => 'application/vnd.pterodactyl.v1+json',
|
|
|
|
|
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'
|
|
|
|
*/
|
|
|
|
'environment_variables' => [],
|
2017-03-10 23:25:12 +00:00
|
|
|
];
|