-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflight_sheet.example.php
More file actions
106 lines (106 loc) · 2.28 KB
/
Copy pathflight_sheet.example.php
File metadata and controls
106 lines (106 loc) · 2.28 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php
/*************************************************************************
* Dataphyre
*
* Copyright (c) 2025 Shopiro Ltd.
* SPDX-License-Identifier: MIT
*/
$example_applications=is_dir(__DIR__.'/applications/example_app') ? __DIR__.'/applications' : __DIR__.'/examples/minimal/applications';
return [
'bootstrap'=>[
'app'=>'example_app',
'public_ip_address'=>null,
'web_server_port'=>null,
'prevent_keyless_direct_access'=>true,
'allow_app_override'=>false,
'is_production'=>true,
'license'=>false,
'max_execution_time'=>30,
'application_roots'=>[
$example_applications,
],
'flightdeck'=>[
'enabled'=>false,
'password'=>null,
'password_hash'=>getenv('DATAPHYRE_FLIGHTDECK_PASSWORD_HASH') ?: null,
'session_ttl'=>43200,
'rate_limit'=>[
'window'=>300,
'max_attempts'=>5,
],
'debugbar'=>[
'enabled'=>false,
'memory_limit'=>null,
],
],
],
'install'=>[
'shared'=>[
'directories'=>[
'cache',
'cache/flightdeck',
'logs',
'plugins',
'plugins/pre_init',
'plugins/post_init',
'sql_migration',
'sql_migration/plans',
'sql_migration/snapshots',
],
'files'=>[
[
'path'=>'cache/load_level.php',
'type'=>'literal',
'contents'=>"<?php return ['level'=>0,'timestamp'=>0,'bottleneck'=>null];\n",
],
[
'path'=>'sql_migration/table_versions.json',
'type'=>'literal',
'contents'=>"{}\n",
],
],
],
'app'=>[
'directories'=>[
'cache',
'cache/locks',
'config',
'config/static',
'fulltext_indexes',
'logs',
'modules',
'plugins',
'plugins/pre_init',
'plugins/post_init',
'sql_migration',
'sql_migration/plans',
'sql_migration/snapshots',
],
'files'=>[
[
'path'=>'modcache.php',
'type'=>'literal',
'contents'=>"<?php return [];\n",
],
[
'path'=>'cache/known_error_conditions.json',
'type'=>'literal',
'contents'=>"{}\n",
],
[
'path'=>'config/static/dpvk',
'type'=>'generated_dpvk',
],
[
'path'=>'unavailable.php',
'type'=>'literal',
'contents'=>"<?php\nhttp_response_code(503);\necho '<h1>Service unavailable</h1>';\nexit();\n",
],
[
'path'=>'cache/verified',
'type'=>'generated_verified',
],
],
],
],
];