2019-02-10 14:57:29 -06:00
|
|
|
<?php
|
2019-10-05 10:26:10 -05:00
|
|
|
|
2019-02-10 14:57:29 -06:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-04-08 09:56:55 -05:00
|
|
|
namespace Shlinkio\Shlink\CLI;
|
|
|
|
|
2020-01-04 06:18:28 -06:00
|
|
|
use Shlinkio\Shlink\Installer\Config\Option;
|
2021-04-08 09:56:55 -05:00
|
|
|
use Shlinkio\Shlink\Installer\Util\InstallationCommand;
|
2019-02-10 14:57:29 -06:00
|
|
|
|
|
|
|
return [
|
|
|
|
|
2020-01-04 06:18:28 -06:00
|
|
|
'installer' => [
|
|
|
|
'enabled_options' => [
|
2020-04-14 13:30:05 -05:00
|
|
|
Option\Database\DatabaseDriverConfigOption::class,
|
|
|
|
Option\Database\DatabaseNameConfigOption::class,
|
|
|
|
Option\Database\DatabaseHostConfigOption::class,
|
|
|
|
Option\Database\DatabasePortConfigOption::class,
|
|
|
|
Option\Database\DatabaseUserConfigOption::class,
|
|
|
|
Option\Database\DatabasePasswordConfigOption::class,
|
2020-11-29 07:01:26 -06:00
|
|
|
Option\Database\DatabaseUnixSocketConfigOption::class,
|
2020-04-14 13:30:05 -05:00
|
|
|
Option\Database\DatabaseSqlitePathConfigOption::class,
|
|
|
|
Option\Database\DatabaseMySqlOptionsConfigOption::class,
|
|
|
|
Option\UrlShortener\ShortDomainHostConfigOption::class,
|
|
|
|
Option\UrlShortener\ShortDomainSchemaConfigOption::class,
|
|
|
|
Option\UrlShortener\ValidateUrlConfigOption::class,
|
|
|
|
Option\Visit\VisitsWebhooksConfigOption::class,
|
2021-10-09 05:35:45 -05:00
|
|
|
Option\Visit\OrphanVisitsWebhooksConfigOption::class,
|
2020-04-14 13:30:05 -05:00
|
|
|
Option\Redirect\BaseUrlRedirectConfigOption::class,
|
|
|
|
Option\Redirect\InvalidShortUrlRedirectConfigOption::class,
|
|
|
|
Option\Redirect\Regular404RedirectConfigOption::class,
|
|
|
|
Option\Visit\CheckVisitsThresholdConfigOption::class,
|
|
|
|
Option\Visit\VisitsThresholdConfigOption::class,
|
2020-01-04 06:18:28 -06:00
|
|
|
Option\BasePathConfigOption::class,
|
2020-04-14 13:30:05 -05:00
|
|
|
Option\Worker\TaskWorkerNumConfigOption::class,
|
|
|
|
Option\Worker\WebWorkerNumConfigOption::class,
|
2020-01-05 10:04:22 -06:00
|
|
|
Option\RedisServersConfigOption::class,
|
2020-04-14 13:30:05 -05:00
|
|
|
Option\UrlShortener\ShortCodeLengthOption::class,
|
2020-04-13 02:38:18 -05:00
|
|
|
Option\Mercure\EnableMercureConfigOption::class,
|
|
|
|
Option\Mercure\MercurePublicUrlConfigOption::class,
|
|
|
|
Option\Mercure\MercureInternalUrlConfigOption::class,
|
|
|
|
Option\Mercure\MercureJwtSecretConfigOption::class,
|
2020-04-30 13:26:00 -05:00
|
|
|
Option\UrlShortener\GeoLiteLicenseKeyConfigOption::class,
|
2020-06-20 04:07:15 -05:00
|
|
|
Option\UrlShortener\RedirectStatusCodeConfigOption::class,
|
|
|
|
Option\UrlShortener\RedirectCacheLifeTimeConfigOption::class,
|
2021-02-03 11:26:50 -06:00
|
|
|
Option\UrlShortener\AutoResolveTitlesConfigOption::class,
|
2021-07-15 11:57:32 -05:00
|
|
|
Option\UrlShortener\AppendExtraPathConfigOption::class,
|
2021-05-16 06:21:12 -05:00
|
|
|
Option\Tracking\IpAnonymizationConfigOption::class,
|
|
|
|
Option\Tracking\OrphanVisitsTrackingConfigOption::class,
|
|
|
|
Option\Tracking\DisableTrackParamConfigOption::class,
|
2021-10-10 15:31:26 -05:00
|
|
|
Option\Tracking\DisableTrackingFromConfigOption::class,
|
2021-05-16 06:21:12 -05:00
|
|
|
Option\Tracking\DisableTrackingConfigOption::class,
|
|
|
|
Option\Tracking\DisableIpTrackingConfigOption::class,
|
|
|
|
Option\Tracking\DisableReferrerTrackingConfigOption::class,
|
|
|
|
Option\Tracking\DisableUaTrackingConfigOption::class,
|
2021-09-26 13:13:50 -05:00
|
|
|
Option\QrCode\DefaultSizeConfigOption::class,
|
|
|
|
Option\QrCode\DefaultMarginConfigOption::class,
|
|
|
|
Option\QrCode\DefaultFormatConfigOption::class,
|
|
|
|
Option\QrCode\DefaultErrorCorrectionConfigOption::class,
|
2019-02-10 14:57:29 -06:00
|
|
|
],
|
|
|
|
|
2020-01-04 06:18:28 -06:00
|
|
|
'installation_commands' => [
|
2021-04-08 09:56:55 -05:00
|
|
|
InstallationCommand::DB_CREATE_SCHEMA => [
|
|
|
|
'command' => 'bin/cli ' . Command\Db\CreateDatabaseCommand::NAME,
|
|
|
|
],
|
|
|
|
InstallationCommand::DB_MIGRATE => [
|
|
|
|
'command' => 'bin/cli ' . Command\Db\MigrateDatabaseCommand::NAME,
|
2020-01-04 06:18:28 -06:00
|
|
|
],
|
2021-04-08 09:56:55 -05:00
|
|
|
InstallationCommand::GEOLITE_DOWNLOAD_DB => [
|
|
|
|
'command' => 'bin/cli ' . Command\Visit\DownloadGeoLiteDbCommand::NAME,
|
2020-01-04 06:18:28 -06:00
|
|
|
],
|
2019-08-06 13:48:48 -05:00
|
|
|
],
|
2019-08-05 03:08:59 -05:00
|
|
|
],
|
|
|
|
|
2019-02-10 14:57:29 -06:00
|
|
|
];
|