Skip to content

Commit 183c056

Browse files
rootEcho-Nie
authored andcommitted
fix lychee: accept 429, 403
fix lychee: accept 429, 403 test
1 parent a9812f5 commit 183c056

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

.lycheeignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

lychee.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
10+
# Exclude links
11+
exclude = [
12+
"zhuanlan.zhihu.com",
13+
"demo.doctrp.top",
14+
"127.0.0.1",
15+
"localhost"
16+
]
17+
18+
# Don't check any links to private addresses
19+
exclude_all_private = true
20+
21+
# Avoid rate limits by limiting concurrency of checks
22+
max_concurrency = 10
23+
24+
# Redirected links can eventually become broken links
25+
max_redirects = 0

0 commit comments

Comments
 (0)