2016-04-30 10:47:48 -05:00
|
|
|
<?php
|
2019-10-05 10:26:10 -05:00
|
|
|
|
2017-10-12 03:13:20 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-06-20 04:07:15 -05:00
|
|
|
use const Shlinkio\Shlink\Core\DEFAULT_REDIRECT_CACHE_LIFETIME;
|
2020-06-17 12:01:56 -05:00
|
|
|
use const Shlinkio\Shlink\Core\DEFAULT_REDIRECT_STATUS_CODE;
|
2020-02-18 11:54:40 -06:00
|
|
|
use const Shlinkio\Shlink\Core\DEFAULT_SHORT_CODES_LENGTH;
|
|
|
|
|
2016-04-30 10:47:48 -05:00
|
|
|
return [
|
|
|
|
|
2016-05-01 04:21:54 -05:00
|
|
|
'url_shortener' => [
|
|
|
|
'domain' => [
|
2019-12-17 14:20:24 -06:00
|
|
|
'schema' => 'https',
|
|
|
|
'hostname' => '',
|
2016-05-01 04:21:54 -05:00
|
|
|
],
|
2021-02-10 13:39:37 -06:00
|
|
|
'validate_url' => false, // Deprecated
|
2019-12-27 02:25:07 -06:00
|
|
|
'visits_webhooks' => [],
|
2020-02-18 11:54:40 -06:00
|
|
|
'default_short_codes_length' => DEFAULT_SHORT_CODES_LENGTH,
|
2021-07-15 06:28:31 -05:00
|
|
|
'auto_resolve_titles' => false,
|
|
|
|
'append_extra_path' => false,
|
|
|
|
|
|
|
|
// TODO Move these two options to their own config namespace. Maybe "redirects".
|
2020-06-17 12:01:56 -05:00
|
|
|
'redirect_status_code' => DEFAULT_REDIRECT_STATUS_CODE,
|
2020-06-20 04:07:15 -05:00
|
|
|
'redirect_cache_lifetime' => DEFAULT_REDIRECT_CACHE_LIFETIME,
|
2016-04-30 10:47:48 -05:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|