Browse Source

Updated to latest installer, supporting redirects customizations

Alejandro Celaya 4 years ago
parent
commit
f2f07be11f
3 changed files with 5 additions and 2 deletions
  1. 1 1
      composer.json
  2. 2 0
      config/autoload/installer.global.php
  3. 2 1
      config/autoload/url-shortener.global.php

+ 1 - 1
composer.json

@@ -52,7 +52,7 @@
         "shlinkio/shlink-common": "^3.1.0",
         "shlinkio/shlink-config": "^1.0",
         "shlinkio/shlink-event-dispatcher": "^1.4",
-        "shlinkio/shlink-installer": "^5.0.0",
+        "shlinkio/shlink-installer": "^5.1.0",
         "shlinkio/shlink-ip-geolocation": "^1.4",
         "symfony/console": "^5.1",
         "symfony/filesystem": "^5.1",

+ 2 - 0
config/autoload/installer.global.php

@@ -37,6 +37,8 @@ return [
             Option\Mercure\MercureJwtSecretConfigOption::class,
             Option\UrlShortener\GeoLiteLicenseKeyConfigOption::class,
             Option\UrlShortener\IpAnonymizationConfigOption::class,
+            Option\UrlShortener\RedirectStatusCodeConfigOption::class,
+            Option\UrlShortener\RedirectCacheLifeTimeConfigOption::class,
         ],
 
         'installation_commands' => [

+ 2 - 1
config/autoload/url-shortener.global.php

@@ -2,6 +2,7 @@
 
 declare(strict_types=1);
 
+use const Shlinkio\Shlink\Core\DEFAULT_REDIRECT_CACHE_LIFETIME;
 use const Shlinkio\Shlink\Core\DEFAULT_REDIRECT_STATUS_CODE;
 use const Shlinkio\Shlink\Core\DEFAULT_SHORT_CODES_LENGTH;
 
@@ -17,7 +18,7 @@ return [
         'visits_webhooks' => [],
         'default_short_codes_length' => DEFAULT_SHORT_CODES_LENGTH,
         'redirect_status_code' => DEFAULT_REDIRECT_STATUS_CODE,
-        'redirect_cache_lifetime' => 30,
+        'redirect_cache_lifetime' => DEFAULT_REDIRECT_CACHE_LIFETIME,
     ],
 
 ];