From 536f42a4e82eda6ccb3880dfe1547e86e2efe8e5 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Fri, 3 Jan 2025 13:34:59 +0100 Subject: [PATCH] add per domain config --- config.toml | 42 ++++++++++++++++++++++++++++ src/archive.rs | 71 ++++++++++++++++++++++++++++++++++++++---------- src/blacklist.rs | 30 ++++++++++++++++++-- src/conf.rs | 39 +++++++++++++++++++++++++- 4 files changed, 164 insertions(+), 18 deletions(-) diff --git a/config.toml b/config.toml index 6349bc0..349ff95 100644 --- a/config.toml +++ b/config.toml @@ -11,6 +11,48 @@ BLACKLIST_DOMAINS = [ "^gitlab" # All domains starting with gitlab ] +# Domain configuration (Example) +[[websites.domains]] +# The domain the config applies to +domain = "example.com" + +# Blacklisted Path (Regexes) +blacklist_paths = ["/.*"] + +# Exclude