Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/config/pterodactyl.php
7382 views
1
<?php
2
3
return [
4
/*
5
|--------------------------------------------------------------------------
6
| Restricted Environment
7
|--------------------------------------------------------------------------
8
|
9
| Set this environment variable to true to enable a restricted configuration
10
| setup on the panel. When set to true, configurations stored in the
11
| database will not be applied.
12
*/
13
14
'load_environment_only' => (bool) env('APP_ENVIRONMENT_ONLY', false),
15
16
/*
17
|--------------------------------------------------------------------------
18
| Service Author
19
|--------------------------------------------------------------------------
20
|
21
| Each panel installation is assigned a unique UUID to identify the
22
| author of custom services, and make upgrades easier by identifying
23
| standard Pterodactyl shipped services.
24
*/
25
26
'service' => [
27
'author' => env('APP_SERVICE_AUTHOR', '[email protected]'),
28
],
29
30
/*
31
|--------------------------------------------------------------------------
32
| Authentication
33
|--------------------------------------------------------------------------
34
|
35
| Should login success and failure events trigger an email to the user?
36
*/
37
38
'auth' => [
39
'2fa_required' => env('APP_2FA_REQUIRED', 0),
40
'2fa' => [
41
'bytes' => 32,
42
'window' => env('APP_2FA_WINDOW', 4),
43
'verify_newer' => true,
44
],
45
],
46
47
/*
48
|--------------------------------------------------------------------------
49
| Pagination
50
|--------------------------------------------------------------------------
51
|
52
| Certain pagination result counts can be configured here and will take
53
| effect globally.
54
*/
55
56
'paginate' => [
57
'frontend' => [
58
'servers' => env('APP_PAGINATE_FRONT_SERVERS', 15),
59
],
60
'admin' => [
61
'servers' => env('APP_PAGINATE_ADMIN_SERVERS', 25),
62
'users' => env('APP_PAGINATE_ADMIN_USERS', 25),
63
],
64
'api' => [
65
'nodes' => env('APP_PAGINATE_API_NODES', 25),
66
'servers' => env('APP_PAGINATE_API_SERVERS', 25),
67
'users' => env('APP_PAGINATE_API_USERS', 25),
68
],
69
],
70
71
/*
72
|--------------------------------------------------------------------------
73
| Guzzle Connections
74
|--------------------------------------------------------------------------
75
|
76
| Configure the timeout to be used for Guzzle connections here.
77
*/
78
79
'guzzle' => [
80
'timeout' => env('GUZZLE_TIMEOUT', 15),
81
'connect_timeout' => env('GUZZLE_CONNECT_TIMEOUT', 5),
82
],
83
84
/*
85
|--------------------------------------------------------------------------
86
| CDN
87
|--------------------------------------------------------------------------
88
|
89
| Information for the panel to use when contacting the CDN to confirm
90
| if panel is up to date.
91
*/
92
93
'cdn' => [
94
'cache_time' => 60,
95
'url' => 'https://cdn.pterodactyl.io/releases/latest.json',
96
],
97
98
/*
99
|--------------------------------------------------------------------------
100
| Client Features
101
|--------------------------------------------------------------------------
102
|
103
| Allow clients to create their own databases.
104
*/
105
106
'client_features' => [
107
'databases' => [
108
'enabled' => env('PTERODACTYL_CLIENT_DATABASES_ENABLED', true),
109
'allow_random' => env('PTERODACTYL_CLIENT_DATABASES_ALLOW_RANDOM', true),
110
],
111
112
'schedules' => [
113
// The total number of tasks that can exist for any given schedule at once.
114
'per_schedule_task_limit' => env('PTERODACTYL_PER_SCHEDULE_TASK_LIMIT', 10),
115
],
116
117
'allocations' => [
118
'enabled' => env('PTERODACTYL_CLIENT_ALLOCATIONS_ENABLED', false),
119
'range_start' => env('PTERODACTYL_CLIENT_ALLOCATIONS_RANGE_START'),
120
'range_end' => env('PTERODACTYL_CLIENT_ALLOCATIONS_RANGE_END'),
121
],
122
],
123
124
/*
125
|--------------------------------------------------------------------------
126
| File Editor
127
|--------------------------------------------------------------------------
128
|
129
| This array includes the MIME filetypes that can be edited via the web.
130
*/
131
132
'files' => [
133
'max_edit_size' => env('PTERODACTYL_FILES_MAX_EDIT_SIZE', 1024 * 1024 * 4),
134
],
135
136
/*
137
|--------------------------------------------------------------------------
138
| Dynamic Environment Variables
139
|--------------------------------------------------------------------------
140
|
141
| Place dynamic environment variables here that should be auto-appended
142
| to server environment fields when the server is created or updated.
143
|
144
| Items should be in 'key' => 'value' format, where key is the environment
145
| variable name, and value is the server-object key. For example:
146
|
147
| 'P_SERVER_CREATED_AT' => 'created_at'
148
*/
149
150
'environment_variables' => [
151
'P_SERVER_ALLOCATION_LIMIT' => 'allocation_limit',
152
],
153
154
/*
155
|--------------------------------------------------------------------------
156
| Asset Verification
157
|--------------------------------------------------------------------------
158
|
159
| This section controls the output format for JS & CSS assets.
160
*/
161
162
'assets' => [
163
'use_hash' => env('PTERODACTYL_USE_ASSET_HASH', false),
164
],
165
166
/*
167
|--------------------------------------------------------------------------
168
| Email Notification Settings
169
|--------------------------------------------------------------------------
170
|
171
| This section controls what notifications are sent to users.
172
*/
173
174
'email' => [
175
// Should an email be sent to a server owner once their server has completed it's first install process?
176
'send_install_notification' => env('PTERODACTYL_SEND_INSTALL_NOTIFICATION', true),
177
// Should an email be sent to a server owner whenever their server is reinstalled?
178
'send_reinstall_notification' => env('PTERODACTYL_SEND_REINSTALL_NOTIFICATION', true),
179
],
180
181
/*
182
|--------------------------------------------------------------------------
183
| Telemetry Settings
184
|--------------------------------------------------------------------------
185
|
186
| This section controls the telemetry sent by Pterodactyl.
187
*/
188
189
'telemetry' => [
190
'enabled' => env('PTERODACTYL_TELEMETRY_ENABLED', true),
191
],
192
];
193
194