Beim Umstellen der git-ftp-Konfiguration ist aufgefallen, dass .vscode/ auf dem Server lag und per HTTPS ohne jede Sperre abrufbar war: sftp.json und ftp-sync.json lieferten mit HTTP 200 das FTP-Passwort im Klartext aus, settings.json Host, Datenbankname und Benutzer der MySQL-Verbindung (dort ohne Passwort). Die drei Dateien und das Verzeichnis sind vom Server geloescht, die URLs antworten jetzt mit 404. .git/ war bereits serverseitig gesperrt, ebenso .git-ftp.log und die .sql-Datei im Root. Zusaetzlich sperrt die Root-.htaccess jetzt Editor-, Versions- und Konfigurationsdateien: Punkt-Verzeichnisse (.git, .vscode, .svn, .hg, .idea, .env) per RedirectMatch 404 sowie die Endungen jsonc, sql, log, ini, bak, old, orig, save, swp, dist. Vorher geprueft, dass nichts davon per HTTP geladen wird; .json ist bewusst nicht gesperrt, damit Bibliotheken unter admin/ weiter funktionieren. Nach dem Ausrollen verifiziert: Startseite, /termine (Rewrite), intern, zeiterfassung, admin, CSS, JS und Bilder liefern weiter 200. .git-ftp.log ist aus der Versionierung genommen. Die Datei ist der Deployment-Zustand, den git-ftp auf dem Server fuehrt; die lokale Kopie stammt nur aus dem Sync und kann den eigenen Commit naturgemaess nie enthalten. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
51 lines
967 B
Plaintext
51 lines
967 B
Plaintext
# ---> CakePHP
|
|
# CakePHP 3
|
|
|
|
/vendor/*
|
|
/config/app.php
|
|
|
|
/tmp/cache/models/*
|
|
!/tmp/cache/models/empty
|
|
/tmp/cache/persistent/*
|
|
!/tmp/cache/persistent/empty
|
|
/tmp/cache/views/*
|
|
!/tmp/cache/views/empty
|
|
/tmp/sessions/*
|
|
!/tmp/sessions/empty
|
|
/tmp/tests/*
|
|
!/tmp/tests/empty
|
|
|
|
/logs/*
|
|
!/logs/empty
|
|
|
|
# CakePHP 2
|
|
|
|
/app/tmp/*
|
|
/app/Config/core.php
|
|
/app/Config/database.php
|
|
/vendors/*
|
|
|
|
# Local editor/deploy configuration
|
|
/.vscode/ftp-sync.json
|
|
/.vscode/sftp.json
|
|
|
|
.vscode/ftp-sync.json
|
|
.vscode/sftp.json
|
|
|
|
sync_config.jsonc
|
|
|
|
# Patient uploads are runtime data, never source-control content.
|
|
/upload/*/
|
|
|
|
# Zugangsdaten - gehoeren nie in die Versionierung.
|
|
# Vorlage: inc/credentials.example.php
|
|
/inc/credentials.php
|
|
|
|
# Editor-Deploy-Konfigurationen enthalten FTP-Passwoerter.
|
|
/.vscode/ftp-sync.json
|
|
/.vscode/sftp.json
|
|
|
|
# Zustand des FTP-Deployments - wird von git-ftp auf dem SERVER gefuehrt,
|
|
# die lokale Kopie ist nur ein Abbild und gehoert nicht in die Versionierung.
|
|
/.git-ftp.log
|