Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/config/app.php
7382 views
1
<?php
2
3
use Illuminate\Support\Facades\Facade;
4
5
return [
6
/*
7
|--------------------------------------------------------------------------
8
| Application Version
9
|--------------------------------------------------------------------------
10
| This value is set when creating a Pterodactyl release. You should not
11
| change this value if you are not maintaining your own internal versions.
12
*/
13
14
'version' => 'canary',
15
16
/*
17
|--------------------------------------------------------------------------
18
| Application Name
19
|--------------------------------------------------------------------------
20
|
21
| This value is the name of your application, which will be used when the
22
| framework needs to place the application's name in a notification or
23
| other UI elements where an application name needs to be displayed.
24
|
25
*/
26
27
'name' => env('APP_NAME', 'Pterodactyl'),
28
29
/*
30
|--------------------------------------------------------------------------
31
| Application Environment
32
|--------------------------------------------------------------------------
33
|
34
| This value determines the "environment" your application is currently
35
| running in. This may determine how you prefer to configure various
36
| services the application utilizes. Set this in your ".env" file.
37
|
38
*/
39
40
'env' => env('APP_ENV', 'production'),
41
42
/*
43
|--------------------------------------------------------------------------
44
| Application Debug Mode
45
|--------------------------------------------------------------------------
46
|
47
| When your application is in debug mode, detailed error messages with
48
| stack traces will be shown on every error that occurs within your
49
| application. If disabled, a simple generic error page is shown.
50
|
51
*/
52
53
'debug' => (bool) env('APP_DEBUG', false),
54
55
/*
56
|--------------------------------------------------------------------------
57
| Application URL
58
|--------------------------------------------------------------------------
59
|
60
| This URL is used by the console to properly generate URLs when using
61
| the Artisan command line tool. You should set this to the root of
62
| the application so that it's available within Artisan commands.
63
|
64
*/
65
66
'url' => env('APP_URL', 'http://localhost'),
67
68
/*
69
|--------------------------------------------------------------------------
70
| Application Timezone
71
|--------------------------------------------------------------------------
72
|
73
| Here you may specify the default timezone for your application, which
74
| will be used by the PHP date and date-time functions. The timezone
75
| is set to "UTC" by default as it is suitable for most use cases.
76
|
77
*/
78
79
'timezone' => env('APP_TIMEZONE', 'UTC'),
80
81
/*
82
|--------------------------------------------------------------------------
83
| Application Locale Configuration
84
|--------------------------------------------------------------------------
85
|
86
| The application locale determines the default locale that will be used
87
| by Laravel's translation / localization methods. This option can be
88
| set to any locale for which you plan to have translation strings.
89
|
90
*/
91
92
'locale' => env('APP_LOCALE', 'en'),
93
94
'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),
95
96
'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'),
97
98
/*
99
|--------------------------------------------------------------------------
100
| Encryption Key
101
|--------------------------------------------------------------------------
102
|
103
| This key is utilized by Laravel's encryption services and should be set
104
| to a random, 32 character string to ensure that all encrypted values
105
| are secure. You should do this prior to deploying the application.
106
|
107
*/
108
109
'cipher' => 'AES-256-CBC',
110
111
'key' => env('APP_KEY'),
112
113
'previous_keys' => [
114
...array_filter(
115
explode(',', env('APP_PREVIOUS_KEYS', ''))
116
),
117
],
118
119
/*
120
|--------------------------------------------------------------------------
121
| Maintenance Mode Driver
122
|--------------------------------------------------------------------------
123
|
124
| These configuration options determine the driver used to determine and
125
| manage Laravel's "maintenance mode" status. The "cache" driver will
126
| allow maintenance mode to be controlled across multiple machines.
127
|
128
| Supported drivers: "file", "cache"
129
|
130
*/
131
132
'maintenance' => [
133
'driver' => env('APP_MAINTENANCE_DRIVER', 'file'),
134
'store' => env('APP_MAINTENANCE_STORE', 'database'),
135
],
136
137
/*
138
|--------------------------------------------------------------------------
139
| Exception Reporter Configuration
140
|--------------------------------------------------------------------------
141
|
142
| If you're encountering weird behavior with the Panel and no exceptions
143
| are being logged try changing the environment variable below to be true.
144
| This will override the default "don't report" behavior of the Panel and log
145
| all exceptions. This will be quite noisy.
146
|
147
*/
148
149
'exceptions' => [
150
'report_all' => env('APP_REPORT_ALL_EXCEPTIONS', false),
151
],
152
153
/*
154
|--------------------------------------------------------------------------
155
| Autoloaded Service Providers
156
|--------------------------------------------------------------------------
157
|
158
| The service providers listed here will be automatically loaded on the
159
| request to your application. Feel free to add your own services to
160
| this array to grant expanded functionality to your applications.
161
|
162
*/
163
164
'providers' => [
165
/*
166
* Laravel Framework Service Providers...
167
*/
168
Illuminate\Auth\AuthServiceProvider::class,
169
Illuminate\Broadcasting\BroadcastServiceProvider::class,
170
Illuminate\Bus\BusServiceProvider::class,
171
Illuminate\Cache\CacheServiceProvider::class,
172
Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
173
Illuminate\Cookie\CookieServiceProvider::class,
174
Illuminate\Database\DatabaseServiceProvider::class,
175
Illuminate\Encryption\EncryptionServiceProvider::class,
176
Illuminate\Filesystem\FilesystemServiceProvider::class,
177
Illuminate\Foundation\Providers\FoundationServiceProvider::class,
178
Illuminate\Hashing\HashServiceProvider::class,
179
Illuminate\Mail\MailServiceProvider::class,
180
Illuminate\Notifications\NotificationServiceProvider::class,
181
Illuminate\Pagination\PaginationServiceProvider::class,
182
Illuminate\Pipeline\PipelineServiceProvider::class,
183
Illuminate\Queue\QueueServiceProvider::class,
184
Illuminate\Redis\RedisServiceProvider::class,
185
Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
186
Illuminate\Session\SessionServiceProvider::class,
187
Illuminate\Translation\TranslationServiceProvider::class,
188
Illuminate\Validation\ValidationServiceProvider::class,
189
Illuminate\View\ViewServiceProvider::class,
190
191
/*
192
* Application Service Providers...
193
*/
194
Pterodactyl\Providers\ActivityLogServiceProvider::class,
195
Pterodactyl\Providers\AppServiceProvider::class,
196
Pterodactyl\Providers\AuthServiceProvider::class,
197
Pterodactyl\Providers\BackupsServiceProvider::class,
198
Pterodactyl\Providers\BladeServiceProvider::class,
199
Pterodactyl\Providers\EventServiceProvider::class,
200
Pterodactyl\Providers\HashidsServiceProvider::class,
201
Pterodactyl\Providers\RouteServiceProvider::class,
202
Pterodactyl\Providers\RepositoryServiceProvider::class,
203
Pterodactyl\Providers\ViewComposerServiceProvider::class,
204
205
/*
206
* Additional Dependencies
207
*/
208
Prologue\Alerts\AlertsServiceProvider::class,
209
],
210
211
/*
212
|--------------------------------------------------------------------------
213
| Class Aliases
214
|--------------------------------------------------------------------------
215
|
216
| This array of class aliases will be registered when this application
217
| is started. However, feel free to register as many as you wish as
218
| the aliases are "lazy" loaded, so they don't hinder performance.
219
|
220
*/
221
222
'aliases' => Facade::defaultAliases()->merge([
223
'Alert' => Prologue\Alerts\Facades\Alert::class,
224
'Carbon' => Carbon\Carbon::class,
225
'JavaScript' => Laracasts\Utilities\JavaScript\JavaScriptFacade::class,
226
'Theme' => Pterodactyl\Extensions\Facades\Theme::class,
227
228
// Custom Facades
229
'Activity' => Pterodactyl\Facades\Activity::class,
230
'LogBatch' => Pterodactyl\Facades\LogBatch::class,
231
'LogTarget' => Pterodactyl\Facades\LogTarget::class,
232
])->toArray(),
233
];
234
235