-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlychee.toml
122 lines (87 loc) · 3.54 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
############################# Display #############################
# Verbose program output
# Accepts log level: "error", "warn", "info", "debug", "trace"
verbose = "info"
# Don't show interactive progress bar while checking links.
no_progress = true
############################# 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 = "2d"
############################# Runtime #############################
# Number of threads to utilize.
# Defaults to number of cores available to the system if omitted.
# threads = 2
# Maximum number of allowed redirects.
max_redirects = 10
# Maximum number of allowed retries before a link is declared dead.
# max_retries = 2
# Maximum number of concurrent link checks.
# max_concurrency = 14
############################# Requests ############################
# User agent to send with each request.
user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.4 Safari/605.1.15"
# Website timeout from connect to response finished.
timeout = 20
# Minimum wait time in seconds between retries of failed requests.
retry_wait_time = 2
# Comma-separated list of accepted status codes for valid links.
# Supported values are:
#
# accept = ["200..=204", "429"]
# accept = "200..=204, 429"
# accept = ["200", "429"]
# accept = "200, 429"
accept = ["200", "429"]
# Proceed for server connections considered insecure (invalid TLS).
insecure = true
# Only test links with the given schemes (e.g. https).
# Omit to check links with any other scheme.
# At the moment, we support http, https, file, and mailto.
scheme = ["https", "mailto"]
# When links are available using HTTPS, treat HTTP links as errors.
require_https = true
# Request method
method = "get"
# Custom request headers
# header = ["name=value", "other=value"]
# Remap URI matching pattern to different URI.
# remap = ["https://example.com http://example.invalid"]
# Base URL or website root directory to check relative URLs.
base_url = "https://devsec.tools"
# HTTP basic auth support. This will be the username and password passed to the
# authorization HTTP header. See
# <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization>
# basic_auth = ["example.com user:pwd"]
############################# Exclusions ##########################
# Skip missing input files (default is to error if they don't exist).
skip_missing = true
# 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 and mail addresses from checking (supports regex).
exclude = [
'^https://comodosslstore\.com',
'^https://devsec\.tools',
'^https://doi\.org',
]
# Exclude these filesystem paths from getting checked.
exclude_path = ["themes/dst2024/node_modules"]
# URLs to check (supports regex). Has preference over all excludes.
# include = ['gist\.github\.com.*']
# Exclude all private IPs from checking.
# Equivalent to setting `exclude_private`, `exclude_link_local`, and
# `exclude_loopback` to true.
# exclude_all_private = false
# Exclude private IP address ranges from checking.
# exclude_private = false
# Exclude link-local IP address range from checking.
# exclude_link_local = false
# Exclude loopback IP address range and localhost from checking.
# exclude_loopback = false
# Check mail addresses
include_mail = true