docs: update README + Bedienungsanleitung; fix config.py SMTP defaults
- test-alert subcommand documented in both files - Cron examples extended with www.bergbauspuren-bredelar.de (03:30) - "Neue Website hinzufügen" updated to URL-first syntax - Bedienungsanleitung: sitemap option, CF7 ignore_pattern example, generic header - config.py: SMTP defaults corrected (smtp_host, smtp_user, from, to) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b6838bb346
commit
beb7f274a3
3 changed files with 48 additions and 16 deletions
15
README.md
15
README.md
|
|
@ -55,6 +55,7 @@ dafür **nichts** extra einzurichten — ein täglicher Aufruf genügt für alle
|
|||
| `approve --rebuild` | Gesamte Baseline ersetzen (nach großer Änderung) |
|
||||
| `report` | Letzten Report anzeigen |
|
||||
| `status` | Baseline-Datum, letzter Scan, Risiko-Level |
|
||||
| `test-alert` | Test-E-Mail senden, ohne echten Scan (SMTP-Check) |
|
||||
|
||||
Alle Befehle akzeptieren `--config path/to/config.yaml` und `--verbose`.
|
||||
|
||||
|
|
@ -135,6 +136,9 @@ laufen mehrere Scans gleichzeitig, konkurrieren sie um Netzwerk und CPU und kön
|
|||
|
||||
# Täglich 03:15 — jamulix.de
|
||||
15 3 * * * cd /home/dschlueter/Python_Programs/integrity_scanner_fuer_statische_Webseiten && python -m scanner --config jamulix.de/config.yaml scan >> jamulix.de/logs/cron.log 2>&1
|
||||
|
||||
# Täglich 03:30 — www.bergbauspuren-bredelar.de
|
||||
30 3 * * * cd /home/dschlueter/Python_Programs/integrity_scanner_fuer_statische_Webseiten && python -m scanner --config www.bergbauspuren-bredelar.de/config.yaml scan >> www.bergbauspuren-bredelar.de/logs/cron.log 2>&1
|
||||
```
|
||||
|
||||
**Wichtig:** Der `cd`-Befehl ist nötig, damit `python -m scanner` das Paket findet.
|
||||
|
|
@ -145,11 +149,12 @@ Nach dem Einrichten prüfen: `crontab -l`
|
|||
### Neue Website hinzufügen
|
||||
|
||||
```bash
|
||||
cp -r meine-seite.de neue-domain.de
|
||||
# In neue-domain.de/config.yaml: target + alle 4 Pfade anpassen
|
||||
python -m scanner --config neue-domain.de/config.yaml init
|
||||
# Dann einen weiteren Cron-Eintrag ergänzen
|
||||
# neue-domain.de/data|reports|logs in .gitignore eintragen
|
||||
# Zielverzeichnis + config.yaml werden automatisch aus dem Template angelegt:
|
||||
python -m scanner https://neue-domain.de init
|
||||
# Externe Domains prüfen und in neue-domain.de/config/allowed_external.yaml eintragen
|
||||
python -m scanner https://neue-domain.de approve --all --note "Erststand geprüft"
|
||||
# Weiteren Cron-Eintrag ergänzen — mit 15 Minuten Abstand zum vorherigen
|
||||
# neue-domain.de/ in .gitignore eintragen (data/, reports/, logs/)
|
||||
```
|
||||
|
||||
Log-Rotation (`/etc/logrotate.d/scanner`):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue