2019-02-10 23:57:29 +03:00
|
|
|
<?php
|
2019-10-05 18:26:10 +03:00
|
|
|
|
2019-02-10 23:57:29 +03:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-04-08 17:56:55 +03:00
|
|
|
namespace Shlinkio\Shlink\CLI;
|
|
|
|
|
2020-01-04 15:18:28 +03:00
|
|
|
use Shlinkio\Shlink\Installer\Config\Option;
|
2021-04-08 17:56:55 +03:00
|
|
|
use Shlinkio\Shlink\Installer\Util\InstallationCommand;
|
2019-02-10 23:57:29 +03:00
|
|
|
|
|
|
|
return [
|
|
|
|
|
2020-01-04 15:18:28 +03:00
|
|
|
'installer' => [
|
|
|
|
'enabled_options' => [
|
2020-04-14 21:30:05 +03: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 16:01:26 +03:00
|
|
|
Option\Database\DatabaseUnixSocketConfigOption::class,
|
2020-04-14 21:30:05 +03:00
|
|
|
Option\UrlShortener\ShortDomainHostConfigOption::class,
|
|
|
|
Option\UrlShortener\ShortDomainSchemaConfigOption::class,
|
|
|
|
Option\Visit\VisitsWebhooksConfigOption::class,
|
2021-10-09 13:35:45 +03:00
|
|
|
Option\Visit\OrphanVisitsWebhooksConfigOption::class,
|
2020-04-14 21:30:05 +03:00
|
|
|
Option\Redirect\BaseUrlRedirectConfigOption::class,
|
|
|
|
Option\Redirect\InvalidShortUrlRedirectConfigOption::class,
|
|
|
|
Option\Redirect\Regular404RedirectConfigOption::class,
|
|
|
|
Option\Visit\VisitsThresholdConfigOption::class,
|
2020-01-04 15:18:28 +03:00
|
|
|
Option\BasePathConfigOption::class,
|
2022-04-14 15:22:48 +03:00
|
|
|
Option\TimezoneConfigOption::class,
|
2020-04-14 21:30:05 +03:00
|
|
|
Option\Worker\TaskWorkerNumConfigOption::class,
|
|
|
|
Option\Worker\WebWorkerNumConfigOption::class,
|
2022-01-15 13:34:17 +03:00
|
|
|
Option\Redis\RedisServersConfigOption::class,
|
|
|
|
Option\Redis\RedisSentinelServiceConfigOption::class,
|
2022-07-25 19:23:13 +03:00
|
|
|
Option\Redis\RedisPubSubConfigOption::class,
|
2020-04-14 21:30:05 +03:00
|
|
|
Option\UrlShortener\ShortCodeLengthOption::class,
|
2020-04-13 10:38:18 +03:00
|
|
|
Option\Mercure\EnableMercureConfigOption::class,
|
|
|
|
Option\Mercure\MercurePublicUrlConfigOption::class,
|
|
|
|
Option\Mercure\MercureInternalUrlConfigOption::class,
|
|
|
|
Option\Mercure\MercureJwtSecretConfigOption::class,
|
2020-04-30 21:26:00 +03:00
|
|
|
Option\UrlShortener\GeoLiteLicenseKeyConfigOption::class,
|
2020-06-20 12:07:15 +03:00
|
|
|
Option\UrlShortener\RedirectStatusCodeConfigOption::class,
|
|
|
|
Option\UrlShortener\RedirectCacheLifeTimeConfigOption::class,
|
2021-02-03 20:26:50 +03:00
|
|
|
Option\UrlShortener\AutoResolveTitlesConfigOption::class,
|
2021-07-15 19:57:32 +03:00
|
|
|
Option\UrlShortener\AppendExtraPathConfigOption::class,
|
2022-08-04 14:00:09 +03:00
|
|
|
Option\UrlShortener\EnableMultiSegmentSlugsConfigOption::class,
|
2022-09-05 22:12:05 +03:00
|
|
|
Option\UrlShortener\EnableTrailingSlashConfigOption::class,
|
2023-01-28 12:06:11 +03:00
|
|
|
Option\UrlShortener\ShortUrlModeConfigOption::class,
|
2021-05-16 14:21:12 +03:00
|
|
|
Option\Tracking\IpAnonymizationConfigOption::class,
|
|
|
|
Option\Tracking\OrphanVisitsTrackingConfigOption::class,
|
|
|
|
Option\Tracking\DisableTrackParamConfigOption::class,
|
2021-10-10 23:31:26 +03:00
|
|
|
Option\Tracking\DisableTrackingFromConfigOption::class,
|
2021-05-16 14:21:12 +03:00
|
|
|
Option\Tracking\DisableTrackingConfigOption::class,
|
|
|
|
Option\Tracking\DisableIpTrackingConfigOption::class,
|
|
|
|
Option\Tracking\DisableReferrerTrackingConfigOption::class,
|
|
|
|
Option\Tracking\DisableUaTrackingConfigOption::class,
|
2021-09-26 21:13:50 +03:00
|
|
|
Option\QrCode\DefaultSizeConfigOption::class,
|
|
|
|
Option\QrCode\DefaultMarginConfigOption::class,
|
|
|
|
Option\QrCode\DefaultFormatConfigOption::class,
|
|
|
|
Option\QrCode\DefaultErrorCorrectionConfigOption::class,
|
2021-12-06 19:35:32 +03:00
|
|
|
Option\QrCode\DefaultRoundBlockSizeConfigOption::class,
|
2021-12-12 13:24:58 +03:00
|
|
|
Option\RabbitMq\RabbitMqEnabledConfigOption::class,
|
|
|
|
Option\RabbitMq\RabbitMqHostConfigOption::class,
|
|
|
|
Option\RabbitMq\RabbitMqPortConfigOption::class,
|
|
|
|
Option\RabbitMq\RabbitMqUserConfigOption::class,
|
|
|
|
Option\RabbitMq\RabbitMqPasswordConfigOption::class,
|
|
|
|
Option\RabbitMq\RabbitMqVhostConfigOption::class,
|
2019-02-10 23:57:29 +03:00
|
|
|
],
|
|
|
|
|
2020-01-04 15:18:28 +03:00
|
|
|
'installation_commands' => [
|
2022-07-29 18:02:00 +03:00
|
|
|
InstallationCommand::DB_CREATE_SCHEMA->value => [
|
2021-04-08 17:56:55 +03:00
|
|
|
'command' => 'bin/cli ' . Command\Db\CreateDatabaseCommand::NAME,
|
|
|
|
],
|
2022-07-29 18:02:00 +03:00
|
|
|
InstallationCommand::DB_MIGRATE->value => [
|
2021-04-08 17:56:55 +03:00
|
|
|
'command' => 'bin/cli ' . Command\Db\MigrateDatabaseCommand::NAME,
|
2020-01-04 15:18:28 +03:00
|
|
|
],
|
2022-09-08 15:10:09 +03:00
|
|
|
InstallationCommand::ORM_PROXIES->value => [
|
|
|
|
'command' => 'bin/doctrine orm:generate-proxies',
|
|
|
|
],
|
|
|
|
InstallationCommand::ORM_CLEAR_CACHE->value => [
|
|
|
|
'command' => 'bin/doctrine orm:clear-cache:metadata',
|
|
|
|
],
|
2022-07-29 18:02:00 +03:00
|
|
|
InstallationCommand::GEOLITE_DOWNLOAD_DB->value => [
|
2021-04-08 17:56:55 +03:00
|
|
|
'command' => 'bin/cli ' . Command\Visit\DownloadGeoLiteDbCommand::NAME,
|
2020-01-04 15:18:28 +03:00
|
|
|
],
|
2022-09-11 14:14:36 +03:00
|
|
|
InstallationCommand::API_KEY_GENERATE->value => [
|
|
|
|
'command' => 'bin/cli ' . Command\Api\GenerateKeyCommand::NAME,
|
|
|
|
],
|
2019-08-06 21:48:48 +03:00
|
|
|
],
|
2019-08-05 11:08:59 +03:00
|
|
|
],
|
|
|
|
|
2019-02-10 23:57:29 +03:00
|
|
|
];
|