-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathlocal.php.dist
More file actions
65 lines (61 loc) · 2.04 KB
/
Copy pathlocal.php.dist
File metadata and controls
65 lines (61 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
declare(strict_types=1);
$baseUrl = 'http://localhost:8080';
$databases = [
'default' => [
'host' => 'localhost',
'dbname' => 'dotkernel',
'user' => '',
'password' => '',
'port' => 3306,
'driver' => 'pdo_mysql',
'charset' => 'utf8mb4',
'collate' => 'utf8mb4_general_ci',
'table_prefix' => '',
],
// you can add more database connections to this array
];
return [
'application' => [
'name' => 'Dotkernel API',
'version' => 6.0,
'url' => $baseUrl,
'versioning' => [
'documentation_url' => 'https://docs.dotkernel.org/api-documentation/v6/core-features/versioning',
],
],
'authentication' => [
'private_key' => [
'key_or_path' => realpath(__DIR__ . '/../../data/oauth/private.key'),
'key_permissions_check' => false,
],
'public_key' => [
'key_or_path' => realpath(__DIR__ . '/../../data/oauth/public.key'),
'key_permissions_check' => false,
],
'encryption_key' => require realpath(__DIR__ . '/../../data/oauth/encryption.key'),
'access_token_expire' => 'P1D',
'refresh_token_expire' => 'P1M',
'auth_code_expire' => 'PT10M',
'invalid_credentials' => [
'error' => 'Invalid credentials.',
'error_description' => 'Invalid credentials.',
'message' => 'Invalid credentials.',
],
],
'databases' => $databases,
'doctrine' => [
'connection' => [
'orm_default' => [
'params' => $databases['default'],
],
],
],
'uploads' => [
'user' => [
'url' => $baseUrl . '/uploads/user',
'path' => realpath(__DIR__ . '/../../public/uploads/user'),
],
],
'userAnonymizeAppend' => '',
];