2016-04-30 10:47:48 -05:00
|
|
|
<?php
|
2017-10-12 03:13:20 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2019-01-28 03:52:05 -06:00
|
|
|
use Shlinkio\Shlink\Core\Options\UrlShortenerOptions;
|
2019-02-26 15:56:43 -06:00
|
|
|
|
2017-10-21 04:28:44 -05:00
|
|
|
use function Shlinkio\Shlink\Common\env;
|
2016-08-01 07:36:39 -05:00
|
|
|
|
2016-04-30 10:47:48 -05:00
|
|
|
return [
|
|
|
|
|
2016-05-01 04:21:54 -05:00
|
|
|
'url_shortener' => [
|
|
|
|
'domain' => [
|
2017-10-21 04:28:44 -05:00
|
|
|
'schema' => env('SHORTENED_URL_SCHEMA', 'http'),
|
|
|
|
'hostname' => env('SHORTENED_URL_HOSTNAME'),
|
2016-05-01 04:21:54 -05:00
|
|
|
],
|
2019-01-28 03:52:05 -06:00
|
|
|
'shortcode_chars' => env('SHORTCODE_CHARS', UrlShortenerOptions::DEFAULT_CHARS),
|
2017-10-23 04:28:04 -05:00
|
|
|
'validate_url' => true,
|
2018-11-03 05:37:43 -05:00
|
|
|
'not_found_short_url' => [
|
|
|
|
'enable_redirection' => false,
|
|
|
|
'redirect_to' => null,
|
|
|
|
],
|
2016-04-30 10:47:48 -05:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|