shlink/config/autoload/url-shortener.global.php

24 lines
571 B
PHP
Raw Normal View History

<?php
2017-10-12 11:13:20 +03:00
declare(strict_types=1);
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
return [
'url_shortener' => [
'domain' => [
2017-10-21 12:28:44 +03:00
'schema' => env('SHORTENED_URL_SCHEMA', 'http'),
'hostname' => env('SHORTENED_URL_HOSTNAME'),
],
'shortcode_chars' => env('SHORTCODE_CHARS', UrlShortenerOptions::DEFAULT_CHARS),
'validate_url' => true,
'not_found_short_url' => [
'enable_redirection' => false,
'redirect_to' => null,
],
],
];