-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path.lychee.toml
More file actions
60 lines (39 loc) · 1.82 KB
/
.lychee.toml
File metadata and controls
60 lines (39 loc) · 1.82 KB
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
# 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/136.0.0.0 Safari/537.36 Edg/136.0.0.0"
# Website timeout from connect to response finished.
timeout = 45
# 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", "301", "429"]
# Only test links with the given schemes (e.g. https).
# Omit to check links with any scheme.
scheme = ["https", "http", "file"]
# Custom request headers
header = { "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