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

24 lines
571 B
PHP
Raw Normal View History

<?php
2017-10-12 03:13:20 -05:00
declare(strict_types=1);
use Shlinkio\Shlink\Core\Options\UrlShortenerOptions;
2017-10-21 04:28:44 -05:00
use function Shlinkio\Shlink\Common\env;
2016-08-01 07:36:39 -05:00
return [
'url_shortener' => [
'domain' => [
2017-10-21 04:28:44 -05: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,
],
],
];