-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlychee.toml
More file actions
66 lines (47 loc) · 1.68 KB
/
lychee.toml
File metadata and controls
66 lines (47 loc) · 1.68 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
61
62
63
64
65
66
# Lychee link checker configuration
# https://github.com/lycheeverse/lychee
base = "https://rupertmckay.com"
# Verbose program output
# Accepts log level: "error", "warn", "info", "debug", "trace"
verbose = "info"
# Output display mode
mode = "emoji"
# Don't show interactive progress bar while checking links
no_progress = true
# Maximum number of concurrent network requests
# Reduced to avoid rate limiting (especially for GitHub)
max_concurrency = 2
# Number of retries for failed requests
max_retries = 3
# Wait time between retries in seconds
retry_wait_time = 5
# Check that fragment identifiers (hash links) exist on the target page
include_fragments = true
# Exclude patterns (regex)
exclude = [
# Exclude localhost and local IPs
"http://localhost",
"http://127.0.0.1",
"http://0.0.0.0",
# Exclude common patterns that might be examples
"http://example.com",
"https://example.com",
# Exclude mailto links (they often fail checks)
"mailto:",
# Exclude npmjs.com (blocks automated requests with 403)
"https://www.npmjs.com",
# Exclude odido.nl (blocks automated requests despite browser user agent)
"https://odido.nl",
]
# Accepted status codes for valid links
accept = [200, 201, 202, 203, 204, 206, 300, 301, 302, 303, 304, 307, 308, "999"]
# Follow redirects
max_redirects = 10
# Timeout in seconds for network requests
timeout = 20
# User agent (mimics a real browser to avoid 403 blocks)
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
# Exclude private network addresses
exclude_private = true
# Don't check links that are already cached (speeds up repeat checks)
cache = true