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