-
Notifications
You must be signed in to change notification settings - Fork 131
/
Copy pathurlhub.php
91 lines (77 loc) · 2.29 KB
/
urlhub.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
return [
/*
|--------------------------------------------------------------------------
| Unregistered Users Access
|--------------------------------------------------------------------------
*/
/*
* If you set false, users must be registered to create Short URL.
*/
'public_site' => true,
/*
* Enable users registration. If disabled it, no one can register.
*/
'registration' => true,
/*
|--------------------------------------------------------------------------
| Shorten URL
|--------------------------------------------------------------------------
*/
/*
* The expected length of the keyword generated when creating a new short URL.
*/
'keyword_length' => 5, // >= 1
/*
* Minimum length of custom keyword.
*/
'custom_keyword_min_length' => 3,
/*
* Maximum length of custom keyword.
*/
'custom_keyword_max_length' => 11,
/*
* List of non allowed domain
*
* This list is used to prevent shortening of urls that contain one of the
* domains below.
*/
'domain_blacklist' => [
// 'bit.ly',
],
/*
* List of reserved or not allowed URL ending
*
* Some of them represent things that look like folder names in public
* folders. Feel free to add keywords that you want to prevent, for
* example rude words.
*/
'reserved_keyword' => [
// Reserved for future use
'build', 'hot', // When Vite is running in development
'vendor', // Packages (ex: laravel/telescope)
'assets', 'fonts', 'images', 'img', 'storage',
],
'web_title' => true,
/*
|--------------------------------------------------------------------------
| Visiting
|--------------------------------------------------------------------------
*/
/*
* HTTP redirect status code.
*/
'redirect_status_code' => 302,
/*
* Indicates that the response remains fresh until N seconds after the response
* is generated.
*/
'redirect_cache_max_age' => 30,
/*
* Determine whether bot visits count or not.
*
* - true: bot will be counted as a visitor
* - false: bots will not be counted as visitors
*/
'track_bot_visits' => false,
];