2017-06-21 04:03:51 +08:00
|
|
|
<?php
|
|
|
|
|
2017-07-06 12:05:17 +08:00
|
|
|
/**
|
|
|
|
* DO NOT MODIFY THIS FILE DIRECTLY!
|
|
|
|
* It will just make upgrading (a little) more difficult
|
|
|
|
*
|
|
|
|
* Create a local.conf.php in the root (in the same directory
|
|
|
|
* as your .env file), and then copy this file into there, and
|
|
|
|
* make your changes there.
|
|
|
|
*/
|
|
|
|
|
2017-06-21 04:03:51 +08:00
|
|
|
return [
|
2018-08-27 00:40:04 +08:00
|
|
|
/*
|
2017-12-16 01:22:46 +08:00
|
|
|
* Check for if we're "installed" or not
|
|
|
|
*/
|
|
|
|
'installed' => env('PHPVMS_INSTALLED', false),
|
|
|
|
|
2019-08-21 20:17:44 +08:00
|
|
|
/*
|
|
|
|
* Avatar resize settings
|
|
|
|
* feel free to edit the following lines.
|
|
|
|
* Both parameters are in px.
|
|
|
|
*/
|
|
|
|
'avatar' => [
|
|
|
|
'width' => '200',
|
|
|
|
'height' => '200',
|
|
|
|
],
|
|
|
|
|
2018-09-21 02:54:43 +08:00
|
|
|
/*
|
|
|
|
* Where to redirect after logging in
|
|
|
|
*/
|
2018-09-21 02:55:58 +08:00
|
|
|
'login_redirect' => '/dashboard',
|
2018-09-21 02:54:43 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Where to redirect after registration
|
|
|
|
*/
|
|
|
|
'registration_redirect' => '/profile',
|
|
|
|
|
2018-08-27 00:40:04 +08:00
|
|
|
/*
|
2018-04-03 11:35:25 +08:00
|
|
|
* Point to the class to use to retrieve the METAR string. If this
|
|
|
|
* goes inactive at some date, it can be replaced
|
|
|
|
*/
|
2019-08-23 02:32:49 +08:00
|
|
|
'metar_lookup' => App\Services\Metar\AviationWeather::class,
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Point to the class used to retrieve the airport information.
|
|
|
|
* If this goes inactive at some date, it can be replaced
|
|
|
|
*/
|
|
|
|
'airport_lookup' => App\Services\AirportLookup\VaCentralLookup::class,
|
2018-04-03 11:35:25 +08:00
|
|
|
|
2020-03-23 21:31:35 +08:00
|
|
|
/*
|
|
|
|
* URL for where to lookup the Simbrief flight plans
|
|
|
|
*/
|
|
|
|
'simbrief_url' => 'https://www.simbrief.com/ofp/flightplans/xml/{id}.xml',
|
|
|
|
|
2021-06-09 23:38:14 +08:00
|
|
|
/*
|
|
|
|
* URL for fetching an updated Simbrief flight plan via API
|
|
|
|
*/
|
|
|
|
'simbrief_update_url' => 'https://www.simbrief.com/api/xml.fetcher.php?userid={sb_user_id}&static_id={sb_static_id}',
|
|
|
|
|
2018-08-27 00:40:04 +08:00
|
|
|
/*
|
2017-12-08 07:22:15 +08:00
|
|
|
* Your vaCentral API key
|
|
|
|
*/
|
2017-12-15 07:12:42 +08:00
|
|
|
'vacentral_api_key' => env('VACENTRAL_API_KEY', ''),
|
2017-12-08 07:22:15 +08:00
|
|
|
|
2018-08-27 00:40:04 +08:00
|
|
|
/*
|
2017-12-08 07:22:15 +08:00
|
|
|
* vaCentral API URL. You likely don't need to change this
|
|
|
|
*/
|
|
|
|
'vacentral_api_url' => 'https://api.vacentral.net',
|
|
|
|
|
2018-08-27 00:40:04 +08:00
|
|
|
/*
|
2017-08-03 04:29:04 +08:00
|
|
|
* Misc Settings
|
|
|
|
*/
|
2017-12-08 07:22:15 +08:00
|
|
|
'news_feed_url' => 'http://forum.phpvms.net/rss/1-announcements-feed.xml/?',
|
2018-01-20 07:44:17 +08:00
|
|
|
|
2018-08-27 00:40:04 +08:00
|
|
|
/*
|
2018-01-20 07:44:17 +08:00
|
|
|
* URL to the latest version file
|
|
|
|
*/
|
2019-08-07 05:48:00 +08:00
|
|
|
'version_file' => 'https://api.github.com/repos/nabeelio/phpvms/releases',
|
|
|
|
|
2020-02-11 06:47:46 +08:00
|
|
|
/**
|
|
|
|
* The URL to download the latest phpVMS version from
|
|
|
|
*/
|
|
|
|
'distrib_url' => 'http://downloads.phpvms.net/phpvms-{VERSION}.zip',
|
|
|
|
|
2019-08-07 05:48:00 +08:00
|
|
|
/*
|
|
|
|
* Where the KVP file is stored
|
|
|
|
*/
|
|
|
|
'kvp_storage_path' => storage_path('app/kvp.json'),
|
2018-02-12 10:19:02 +08:00
|
|
|
|
2018-08-27 00:40:04 +08:00
|
|
|
/*
|
2018-02-12 10:19:02 +08:00
|
|
|
* DO NOT CHANGE THESE! It will result in messed up data
|
|
|
|
* The setting you're looking for is in the admin panel,
|
|
|
|
* under settings, for the display units
|
|
|
|
*/
|
|
|
|
'internal_units' => [
|
2018-08-27 00:40:04 +08:00
|
|
|
'altitude' => 'feet',
|
|
|
|
'distance' => 'nmi',
|
|
|
|
'fuel' => 'lbs',
|
|
|
|
'mass' => 'lbs',
|
|
|
|
'velocity' => 'knots',
|
|
|
|
'volume' => 'gallons',
|
2018-02-12 10:19:02 +08:00
|
|
|
],
|
2018-05-01 09:24:06 +08:00
|
|
|
|
|
|
|
/*
|
2019-08-21 20:17:44 +08:00
|
|
|
* DO NOT CHANGE THIS. This is used to map error codes to the approriate
|
|
|
|
* RFC 7807 type, which can be used as a machine-readable error code/map
|
2018-05-01 09:24:06 +08:00
|
|
|
*/
|
2019-08-21 20:17:44 +08:00
|
|
|
'error_root' => 'https://phpvms.net/errors',
|
2020-01-16 22:49:28 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The links to various docs on the documentation site
|
|
|
|
*/
|
|
|
|
'docs' => [
|
2020-10-13 03:15:05 +08:00
|
|
|
'root' => 'https://docs.phpvms.net',
|
2020-09-05 02:08:14 +08:00
|
|
|
'cron' => '/installation/cron',
|
2020-03-06 09:19:12 +08:00
|
|
|
'finances' => '/concepts/finances',
|
2020-09-05 02:08:14 +08:00
|
|
|
'importing_legacy' => '/installation/importing',
|
2020-03-06 09:19:12 +08:00
|
|
|
'load_factor' => '/operations/flights#load-factor',
|
|
|
|
'subfleets' => '/concepts/basics#subfleets-and-aircraft',
|
2020-01-16 22:49:28 +08:00
|
|
|
],
|
2017-06-21 04:03:51 +08:00
|
|
|
];
|