From 185e00e77e05f7fd905962d0555eba9887a8b14a Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 4 Jul 2024 13:57:59 -0700 Subject: check for broken links --- lychee.toml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lychee.toml (limited to 'lychee.toml') diff --git a/lychee.toml b/lychee.toml new file mode 100644 index 0000000..52d3842 --- /dev/null +++ b/lychee.toml @@ -0,0 +1,21 @@ +# Enable link caching. +cache = true + +# Discard all cached requests older than one day. +max_cache_age = "1d" + +# Maximum number of allowed retries before a link is declared dead. +max_retries = 3 + +# User agent to send with each request. +# https://www.whatismybrowser.com/guides/the-latest-user-agent/chrome +user_agent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" + +# Minimum wait time in seconds between retries of failed requests. +retry_wait_time = 3 + +# Comma-separated list of accepted status codes for valid links. +accept = [200, 403] + +# Exclude all private IPs from checking. +exclude_all_private = true -- cgit v1.2.3