Passed
Push — v3 ( 2b006a...43f239 )
by Andrew
33:34 queued 16:32
created

src/config.php (7 issues)

1
<?php
2
/**
3
 * Retour plugin for Craft CMS 3.x
4
 *
5
 * Retour allows you to intelligently redirect legacy URLs, so that you don't
6
 * lose SEO value when rebuilding & restructuring a website
7
 *
8
 * @link      https://nystudio107.com/
0 ignored issues
show
The tag in position 1 should be the @copyright tag
Loading history...
9
 * @copyright Copyright (c) 2018 nystudio107
0 ignored issues
show
@copyright tag must contain a year and the name of the copyright holder
Loading history...
10
 */
0 ignored issues
show
PHP version not specified
Loading history...
Missing @category tag in file comment
Loading history...
Missing @package tag in file comment
Loading history...
Missing @author tag in file comment
Loading history...
Missing @license tag in file comment
Loading history...
11
12
/**
13
 * Retour config.php
14
 *
15
 * This file exists only as a template for the Retour settings.
16
 * It does nothing on its own.
17
 *
18
 * Don't edit this file, instead copy it to 'craft/config' as 'retour.php'
19
 * and make your changes there to override default settings.
20
 *
21
 * Once copied to 'craft/config', this file will be multi-environment aware as
22
 * well, so you can have different settings groups for each environment, just as
23
 * you do for 'general.php'
24
 */
25
26
return [
27
    // The public facing name of the plugin
28
    'pluginName' => 'Retour',
29
30
    // Controls whether Retour automatically creates static redirects when an entry's URI changes.
31
    'createUriChangeRedirects' => true,
32
33
    // Should the legacy URL be matched by path (e.g. `/new-recipes/`) or by full URL (e.g.: `http://example.com/de/new-recipes/`)?
34
    'uriChangeRedirectSrcMatch' => 'pathonly',
35
36
    // Should the query string be stripped from all 404 URLs before their evaluation?
37
    'alwaysStripQueryString'   => false,
38
39
    // Should the query string be stripped from the saved statistics source URLs?
40
    'stripQueryStringFromStats'   => true,
41
42
    // Should the anonymous ip address of the client causing a 404 be recorded?
43
    'recordRemoteIp' => true,
44
45
    // How many stats should be stored
46
    'statsStoredLimit' => 1000,
47
48
    // Dashboard data live refresh interval
49
    'refreshIntervalSecs' => 5,
50
51
    // Whether the Statistics should be trimmed after each new statistic is recorded
52
    'automaticallyTrimStatistics' => true,
53
54
    // The number of milliseconds required between trimming of statistics
55
    'statisticsRateLimitMs' => 3600000,
56
57
    // Determines whether the Retour API endpoint should be enabled for anonymous frontend access
58
    'enableApiEndpoint' => false,
59
60
     // [Regular expressions](https://regexr.com/) to match URLs to exclude from tracking
61
    'excludePatterns' => [
62
    ],
63
64
    // Additional headers to add to redirected requests
65
    'additionalHeaders' => [
66
    ],
67
68
    // The delimiter between data column values for importing CSV files (normally `,`)
69
    'csvColumnDelimiter' => ',',
70
];
71