Skip to content

Commit 3cfbba0

Browse files
author
root
committed
fix lychee: accept 429, 403
1 parent a0e4a01 commit 3cfbba0

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

lychee.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# For all options, see <https://lychee.cli.rs/usage/config/>
2+
# Accept 200 (OK) and 403 (Forbidden) responses as valid
3+
accept = [
4+
"200",
5+
"403",
6+
"429"
7+
]
8+
9+
# Exclude links
10+
exclude = [
11+
"zhuanlan.zhihu.com",
12+
"demo.doctrp.top",
13+
"127.0.0.1",
14+
"localhost"
15+
]
16+
17+
# Don't check any links to private addresses
18+
exclude_all_private = true
19+
20+
# Avoid rate limits by limiting concurrency of checks
21+
max_concurrency = 10
22+
23+
# Redirected links can eventually become broken links
24+
max_redirects = 0

0 commit comments

Comments
 (0)