Repository navigation
Expand file tree
/
Copy pathfleetbase.php
More file actions
80 lines (74 loc) · 3.21 KB
/
Copy pathfleetbase.php
File metadata and controls
80 lines (74 loc) · 3.21 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
<?php
/**
* -------------------------------------------
* Fleetbase Core API Configuration
* -------------------------------------------.
*/
return [
'api' => [
'version' => 'v1',
'routing' => [
'prefix' => env('API_PREFIX'),
'internal_prefix' => env('INTERNAL_API_PREFIX', 'int'),
],
],
'console' => [
'path' => env('CONSOLE_PATH', '/fleetbase/console'),
'host' => env('CONSOLE_HOST', 'fleetbase.io'),
'subdomain' => env('CONSOLE_SUBDOMAIN'),
'secure' => env('CONSOLE_SECURE', !app()->environment(['development', 'local'])),
],
'services' => [
'ipinfo' => [
'api_key' => env('IPINFO_API_KEY'),
],
],
'connection' => [
'db' => env('DB_CONNECTION', 'mysql'),
'sandbox' => env('SANDBOX_DB_CONNECTION', 'sandbox'),
],
'branding' => [
'logo_url' => 'https://flb-assets.s3.ap-southeast-1.amazonaws.com/static/fleetbase-logo.png',
'icon_url' => 'https://flb-assets.s3.ap-southeast-1.amazonaws.com/static/fleetbase-icon.png',
],
'version' => env('FLEETBASE_VERSION', '0.7.1'),
/*
|--------------------------------------------------------------------------
| Fleetbase Hosted Routing
|--------------------------------------------------------------------------
|
| A free routing key at install time (Support\HostedRouting), with the
| first admin's consent at onboarding or `php artisan routing:register`.
| ROUTING_AUTO_REGISTER=false hides the onboarding choice and makes the
| command refuse unless --force.
*/
'hosted_routing' => [
'auto_register' => env('ROUTING_AUTO_REGISTER', true),
'registration_url' => env('ROUTING_REGISTRATION_URL', 'https://api.fleetbase.io/__/licenses/register-instance'),
'api_host' => env('ROUTING_API_HOST', 'https://valhalla.routing.fleetbase.io'),
'domain' => env('ROUTING_HOSTED_DOMAIN', 'routing.fleetbase.io'),
'timeout' => env('ROUTING_REGISTRATION_TIMEOUT', 10),
],
'instance_id' => env('FLEETBASE_INSTANCE_ID') ?? (file_exists(base_path('.fleetbase-id')) ? trim(file_get_contents(base_path('.fleetbase-id'))) : null),
/*
|--------------------------------------------------------------------------
| SMS Authentication Bypass Code
|--------------------------------------------------------------------------
|
| This value allows a configurable bypass code for SMS-based authentication,
| intended strictly for testing and development environments. It MUST be
| left null (unset) in production. When null or empty, no bypass is
| permitted and only the genuine Redis-stored OTP will be accepted.
|
| Environment variable: SMS_AUTH_BYPASS_CODE
|
*/
'sms_auth_bypass_code' => env('SMS_AUTH_BYPASS_CODE'),
'user_cache' => [
'enabled' => env('USER_CACHE_ENABLED', true),
'server_ttl' => (int) env('USER_CACHE_SERVER_TTL', 900), // 15 minutes
'browser_ttl' => (int) env('USER_CACHE_BROWSER_TTL', 300), // 5 minutes
],
'template_query_models' => [],
'template_global_query_models' => [],
];