mirror of
https://github.com/shlinkio/shlink.git
synced 2025-01-07 22:53:10 -06:00
24 lines
596 B
Plaintext
24 lines
596 B
Plaintext
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use function Shlinkio\Shlink\Config\env;
|
|
use function Shlinkio\Shlink\Config\swooleIsInstalled;
|
|
|
|
return [
|
|
|
|
'url_shortener' => [
|
|
'domain' => [
|
|
'schema' => 'http',
|
|
'hostname' => sprintf('localhost:%s', match (true) {
|
|
PHP_SAPI === 'cli' && env('RR_MODE') !== null => '8800', // Roadrunner
|
|
swooleIsInstalled() => '8080', // Swoole
|
|
default => '8000', // FPM
|
|
}),
|
|
],
|
|
'auto_resolve_titles' => true,
|
|
// 'multi_segment_slugs_enabled' => true,
|
|
],
|
|
|
|
];
|