-
Notifications
You must be signed in to change notification settings - Fork 310
/
lychee.toml
69 lines (47 loc) · 1.92 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
63
64
65
66
67
68
69
# See https://github.com/lycheeverse/lychee/blob/master/lychee.example.toml
############################# Display #############################
# Verbose program output
verbose = "info"
############################# 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 = 50
# Maximum number of allowed retries before a link is declared dead.
max_retries = 3
############################# Requests ############################
# User agent to send with each request.
user_agent = "Mozilla/5.0"
# Website timeout from connect to response finished.
timeout = 20
# Minimum wait time in seconds between retries of failed requests.
retry_wait_time = 2
############################# Requests ############################
# Comma-separated list of accepted status codes for valid links.
accept = [200, 429, 403]
# Proceed for server connections considered insecure (invalid TLS).
insecure = false
# When links are available using HTTPS, treat HTTP links as errors.
require_https = true
############################# Exclusions ##########################
# Check links inside `<code>` and `<pre>` blocks as well as Markdown code
# blocks.
include_verbatim = true
# Ignore case of paths when matching glob patterns.
glob_ignore_case = false
# Exclude URLs from checking (supports regex).
exclude = [
"https://www.gnu.org/software/emacs"
]
# Exclude these filesystem paths from getting checked.
exclude_path = ["vendor"]
# Exclude all private IPs from checking.
# Equivalent to setting `exclude_private`, `exclude_link_local`, and
# `exclude_loopback` to true.
exclude_all_private = true
# Exclude all mail addresses from checking.
exclude_mail = true