integrity_scanner_fuer_stat.../bredelar.info/config.yaml
Your Name ab882f912e refactor: multi-site structure — one directory per target website
Each monitored website now lives in its own named subdirectory
(bredelar.info/, jamulix.de/) with a dedicated config.yaml using
absolute paths. This makes adding new sites trivial:
  mkdir newsite.de && cp bredelar.info/config.yaml newsite.de/
  # adjust target + paths, then: python -m scanner --config newsite.de/config.yaml init

Changes:
- bredelar.info/: moved data/, reports/, logs/, config/ from project root
- bredelar.info/config.yaml: new, with absolute paths
- jamulix.de/: moved from ~/Python_Programs/jamulix_check/
- jamulix.de/config.yaml: updated paths to new location
- .gitignore: replaced old data/*/reports/logs entries with per-site entries
- config.yaml (root): removed (replaced by site-specific configs)
- CLAUDE.md: updated CLI examples to --config <site>/config.yaml

Usage:
  python -m scanner --config bredelar.info/config.yaml scan
  python -m scanner --config jamulix.de/config.yaml scan

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-12 15:01:14 +02:00

124 lines
2.8 KiB
YAML

# Integrity Scanner — Konfiguration für bredelar.info
target: "https://bredelar.info"
user_agent: "integrity-scanner/1.0 (+security-monitoring)"
request_timeout: 20
data_dir: "/home/dschlueter/Python_Programs/integrity_scanner_fuer_statische_Webseiten/bredelar.info/data"
reports_dir: "/home/dschlueter/Python_Programs/integrity_scanner_fuer_statische_Webseiten/bredelar.info/reports"
logs_dir: "/home/dschlueter/Python_Programs/integrity_scanner_fuer_statische_Webseiten/bredelar.info/logs"
config_dir: "/home/dschlueter/Python_Programs/integrity_scanner_fuer_statische_Webseiten/bredelar.info/config"
crawl:
max_pages: 200
delay_seconds: 1.0
respect_robots_txt: false
# Pfade, die vom Crawl und vom Vergleich komplett ausgeschlossen werden.
# Nützlich für Bereiche mit gewollt häufig wechselnden Inhalten (RSS-Feeds, News-Archive).
# Beispiel: ["/rss/", "/feed/", "/news/archiv/"]
exclude_paths: []
skip_extensions:
- ".jpg"
- ".jpeg"
- ".png"
- ".gif"
- ".webp"
- ".svg"
- ".ico"
- ".pdf"
- ".zip"
- ".woff"
- ".woff2"
- ".ttf"
- ".otf"
- ".eot"
- ".mp4"
- ".mp3"
- ".webm"
- ".avi"
- ".mov"
scoring:
new_external_domain: 50
new_internal_url: 30
missing_internal_url: 20
hidden_content: 40
unexpected_canonical: 35
meta_refresh: 40
unexpected_jsonld: 35
large_text_addition: 20
new_inline_script_suspicious: 30
comment_links: 25
new_broken_link: 20
suspicious_filename: 60
cloaking_extra_link: 60
cloaking_extra_text: 40
cloaking_vary_ua: 25
changed_script: 40
changed_stylesheet: 30
changed_asset: 20
thresholds:
yellow: 20
red: 60
large_text_block_chars: 200
# Wöchentliche Zusatzprüfungen laufen automatisch beim täglichen `scan` mit.
periodic_checks:
enabled: true
interval_days: 7
cloak_check: true
ext_links: true
assets: true
alerting:
min_level: "yellow"
email:
enabled: false
smtp_host: "localhost"
smtp_port: 587
smtp_tls: true
smtp_user: ""
smtp_password_env: "SCANNER_SMTP_PASSWORD"
from: "scanner@bredelar.info"
to:
- "admin@bredelar.info"
webhook:
enabled: false
url: ""
normalization:
strip_html_comments: true
collapse_whitespace: true
ignore_selectors:
# - "#last-modified"
# - ".timestamp"
ignore_patterns:
# - '\d{1,2}\.\d{1,2}\.\d{4}'
# - 'Stand:\s+\S+'
allowed_jsonld_types:
- "Organization"
- "WebSite"
- "WebPage"
- "Article"
- "BreadcrumbList"
- "ItemList"
- "LocalBusiness"
- "Place"
- "Person"
- "Event"
- "FAQPage"
- "Question"
- "Answer"
- "ImageObject"
- "SiteLinksSearchBox"
- "ContactPage"
- "AboutPage"
security_headers:
- "Content-Security-Policy"
- "Strict-Transport-Security"
- "X-Content-Type-Options"
- "Referrer-Policy"