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' => [
|
2023-11-25 02:55:01 -06:00
|
|
|
Option\Server\RuntimeConfigOption::class,
|
2024-04-09 02:39:38 -05:00
|
|
|
Option\Server\MemoryLimitConfigOption::class,
|
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\UrlShortener\ShortDomainHostConfigOption::class,
|
|
|
|
Option\UrlShortener\ShortDomainSchemaConfigOption::class,
|
|
|
|
Option\Redirect\BaseUrlRedirectConfigOption::class,
|
|
|
|
Option\Redirect\InvalidShortUrlRedirectConfigOption::class,
|
|
|
|
Option\Redirect\Regular404RedirectConfigOption::class,
|
|
|
|
Option\Visit\VisitsThresholdConfigOption::class,
|
2020-01-04 06:18:28 -06:00
|
|
|
Option\BasePathConfigOption::class,
|
2022-04-14 07:22:48 -05:00
|
|
|
Option\TimezoneConfigOption::class,
|
2023-10-06 02:19:55 -05:00
|
|
|
Option\Cache\CacheNamespaceConfigOption::class,
|
2022-01-15 04:34:17 -06:00
|
|
|
Option\Redis\RedisServersConfigOption::class,
|
|
|
|
Option\Redis\RedisSentinelServiceConfigOption::class,
|
2022-07-25 11:23:13 -05:00
|
|
|
Option\Redis\RedisPubSubConfigOption::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,
|
2022-08-04 06:00:09 -05:00
|
|
|
Option\UrlShortener\EnableMultiSegmentSlugsConfigOption::class,
|
2022-09-05 14:12:05 -05:00
|
|
|
Option\UrlShortener\EnableTrailingSlashConfigOption::class,
|
2023-01-28 03:06:11 -06:00
|
|
|
Option\UrlShortener\ShortUrlModeConfigOption::class,
|
2024-07-05 02:41:26 -05:00
|
|
|
Option\Robots\RobotsAllowAllShortUrlsConfigOption::class,
|
|
|
|
Option\Robots\RobotsUserAgentsConfigOption::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,
|
2021-12-06 10:35:32 -06:00
|
|
|
Option\QrCode\DefaultRoundBlockSizeConfigOption::class,
|
2024-02-19 16:10:51 -06:00
|
|
|
Option\QrCode\DefaultColorConfigOption::class,
|
|
|
|
Option\QrCode\DefaultBgColorConfigOption::class,
|
|
|
|
Option\QrCode\DefaultLogoUrlConfigOption::class,
|
2023-12-24 02:48:44 -06:00
|
|
|
Option\QrCode\EnabledForDisabledShortUrlsConfigOption::class,
|
2021-12-12 04:24:58 -06:00
|
|
|
Option\RabbitMq\RabbitMqEnabledConfigOption::class,
|
|
|
|
Option\RabbitMq\RabbitMqHostConfigOption::class,
|
2023-11-25 06:04:30 -06:00
|
|
|
Option\RabbitMq\RabbitMqUseSslConfigOption::class,
|
2021-12-12 04:24:58 -06:00
|
|
|
Option\RabbitMq\RabbitMqPortConfigOption::class,
|
|
|
|
Option\RabbitMq\RabbitMqUserConfigOption::class,
|
|
|
|
Option\RabbitMq\RabbitMqPasswordConfigOption::class,
|
|
|
|
Option\RabbitMq\RabbitMqVhostConfigOption::class,
|
2023-11-11 13:12:39 -06:00
|
|
|
Option\Matomo\MatomoEnabledConfigOption::class,
|
|
|
|
Option\Matomo\MatomoBaseUrlConfigOption::class,
|
|
|
|
Option\Matomo\MatomoSiteIdConfigOption::class,
|
|
|
|
Option\Matomo\MatomoApiTokenConfigOption::class,
|
2019-02-10 14:57:29 -06:00
|
|
|
],
|
|
|
|
|
2020-01-04 06:18:28 -06:00
|
|
|
'installation_commands' => [
|
2022-07-29 10:02:00 -05:00
|
|
|
InstallationCommand::DB_CREATE_SCHEMA->value => [
|
2021-04-08 09:56:55 -05:00
|
|
|
'command' => 'bin/cli ' . Command\Db\CreateDatabaseCommand::NAME,
|
|
|
|
],
|
2022-07-29 10:02:00 -05:00
|
|
|
InstallationCommand::DB_MIGRATE->value => [
|
2021-04-08 09:56:55 -05:00
|
|
|
'command' => 'bin/cli ' . Command\Db\MigrateDatabaseCommand::NAME,
|
2020-01-04 06:18:28 -06:00
|
|
|
],
|
2022-09-08 07:10:09 -05: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 10:02:00 -05:00
|
|
|
InstallationCommand::GEOLITE_DOWNLOAD_DB->value => [
|
2021-04-08 09:56:55 -05:00
|
|
|
'command' => 'bin/cli ' . Command\Visit\DownloadGeoLiteDbCommand::NAME,
|
2020-01-04 06:18:28 -06:00
|
|
|
],
|
2022-09-11 06:14:36 -05:00
|
|
|
InstallationCommand::API_KEY_GENERATE->value => [
|
2023-09-21 01:58:05 -05:00
|
|
|
'command' => 'bin/cli ' . Command\Api\GenerateKeyCommand::NAME,
|
2022-09-11 06:14:36 -05:00
|
|
|
],
|
2023-09-22 03:00:19 -05:00
|
|
|
InstallationCommand::API_KEY_CREATE->value => [
|
|
|
|
'command' => 'bin/cli ' . Command\Api\InitialApiKeyCommand::NAME,
|
|
|
|
],
|
2019-08-06 13:48:48 -05:00
|
|
|
],
|
2019-08-05 03:08:59 -05:00
|
|
|
],
|
|
|
|
|
2019-02-10 14:57:29 -06:00
|
|
|
];
|