2019-11-02 13:30:09 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2022-01-20 22:16:37 +03:00
|
|
|
use Shlinkio\Shlink\Core\Config\EnvVars;
|
2021-08-07 12:05:20 +03:00
|
|
|
|
2021-10-09 11:53:21 +03:00
|
|
|
use const Shlinkio\Shlink\DEFAULT_REDIRECT_CACHE_LIFETIME;
|
|
|
|
use const Shlinkio\Shlink\DEFAULT_REDIRECT_STATUS_CODE;
|
|
|
|
|
2019-11-02 13:30:09 +03:00
|
|
|
return [
|
|
|
|
|
|
|
|
'not_found_redirects' => [
|
2022-04-23 13:44:17 +03:00
|
|
|
'invalid_short_url' => EnvVars::DEFAULT_INVALID_SHORT_URL_REDIRECT->loadFromEnv(),
|
|
|
|
'regular_404' => EnvVars::DEFAULT_REGULAR_404_REDIRECT->loadFromEnv(),
|
|
|
|
'base_url' => EnvVars::DEFAULT_BASE_URL_REDIRECT->loadFromEnv(),
|
2019-11-02 13:30:09 +03:00
|
|
|
],
|
|
|
|
|
2022-01-16 17:34:07 +03:00
|
|
|
'redirects' => [
|
2022-04-23 13:44:17 +03:00
|
|
|
'redirect_status_code' => (int) EnvVars::REDIRECT_STATUS_CODE->loadFromEnv(DEFAULT_REDIRECT_STATUS_CODE),
|
|
|
|
'redirect_cache_lifetime' => (int) EnvVars::REDIRECT_CACHE_LIFETIME->loadFromEnv(
|
2022-01-20 22:16:37 +03:00
|
|
|
DEFAULT_REDIRECT_CACHE_LIFETIME,
|
|
|
|
),
|
2021-10-09 11:53:21 +03:00
|
|
|
],
|
|
|
|
|
2019-11-02 13:30:09 +03:00
|
|
|
];
|