url-shortener.global.php 576 B

1234567891011121314151617181920212223
  1. <?php
  2. declare(strict_types=1);
  3. use const Shlinkio\Shlink\Core\DEFAULT_REDIRECT_STATUS_CODE;
  4. use const Shlinkio\Shlink\Core\DEFAULT_SHORT_CODES_LENGTH;
  5. return [
  6. 'url_shortener' => [
  7. 'domain' => [
  8. 'schema' => 'https',
  9. 'hostname' => '',
  10. ],
  11. 'validate_url' => false,
  12. 'anonymize_remote_addr' => true,
  13. 'visits_webhooks' => [],
  14. 'default_short_codes_length' => DEFAULT_SHORT_CODES_LENGTH,
  15. 'redirect_status_code' => DEFAULT_REDIRECT_STATUS_CODE,
  16. 'redirect_cache_lifetime' => 30,
  17. ],
  18. ];