aboutsummaryrefslogtreecommitdiff
path: root/src/fcuny.net/lychee.toml
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-07-14 08:56:53 -0700
committerFranck Cuny <franck@fcuny.net>2025-07-14 08:56:53 -0700
commitc4afe667db7734f41de3fca9d1c18e309abcc1d8 (patch)
tree3b3d88d4c7c38a1758d5313e8116181900b8e864 /src/fcuny.net/lychee.toml
parentcreate common network configuration for nixos (diff)
downloadinfra-c4afe667db7734f41de3fca9d1c18e309abcc1d8.tar.gz
import my website under `src`
This does not import the history of the previous repository.
Diffstat (limited to '')
-rw-r--r--src/fcuny.net/lychee.toml21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/fcuny.net/lychee.toml b/src/fcuny.net/lychee.toml
new file mode 100644
index 0000000..52d3842
--- /dev/null
+++ b/src/fcuny.net/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