-
-
Notifications
You must be signed in to change notification settings - Fork 249
/
Copy pathlychee.toml
62 lines (41 loc) · 2.01 KB
/
lychee.toml
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
# Docs: https://lychee.cli.rs/#/usage/config
# Example config: https://github.com/lycheeverse/lychee/blob/master/lychee.example.toml
############################# Cache ###############################
# Enable link caching. This can be helpful to avoid checking the same links on multiple runs.
cache = true
# Discard all cached requests older than this duration.
max_cache_age = "1d"
############################# Runtime #############################
# Maximum number of allowed redirects.
max_redirects = 6
# Maximum number of allowed retries before a link is declared dead.
max_retries = 2
# Maximum number of concurrent link checks.
# max_concurrency = 2
############################# Requests ############################
# User agent to send with each request.
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.43"
# Minimum wait time in seconds between retries of failed requests.
retry_wait_time = 2
# Comma-separated list of accepted status codes for valid links.
accept = [200, 206, 429]
# Only test links with the given schemes (e.g. https).
# Omit to check links with any scheme.
scheme = [ "https", "http" ]
# Custom request headers
headers = ['Accept-Encoding: deflate, compress, gzip, br, zstd']
############################# Exclusions ##########################
# Ignore case of paths when matching glob patterns.
glob_ignore_case = true
# Exclude all private IPs from checking.
exclude_all_private = true
# Exclude private IP address ranges from checking.
exclude_private = true
# Exclude link-local IP address range from checking.
exclude_link_local = true
# Exclude loopback IP address range and localhost from checking.
exclude_loopback = true
# Exclude all mail addresses from checking.
exclude_mail = true
# Exclude these filesystem paths from getting checked.
exclude_path = ["node_modules", "site", "docs", ".venv", "CHANGELOG.md", "megalinter/descriptors/schemas", ".automation/generated", ".automation/test"]