diff --git a/.lycheeignore b/.lycheeignore deleted file mode 100644 index 98b26f6e886..00000000000 --- a/.lycheeignore +++ /dev/null @@ -1,4 +0,0 @@ -zhuanlan.zhihu.com/* -https://demo.doctrp.top/ -http://127.0.0.1:8001/ -http://localhost:9003 diff --git a/lychee.toml b/lychee.toml new file mode 100644 index 00000000000..c597f3c24a7 --- /dev/null +++ b/lychee.toml @@ -0,0 +1,24 @@ +# For all options, see +# Accept 200 (OK) and 403 (Forbidden) responses as valid +accept = [ + "200", + "403", + "429" +] + +# Exclude links +exclude = [ + "zhuanlan.zhihu.com", + "demo.doctrp.top", + "127.0.0.1", + "localhost" +] + +# Don't check any links to private addresses +exclude_all_private = true + +# Avoid rate limits by limiting concurrency of checks +max_concurrency = 10 + +# Redirected links can eventually become broken links +max_redirects = 0