- GlitchTip über die Sentry-SDKs; Datenschutzfilter (nur User-ID, keine
Request-Bodys, Tokens aus URL/Query/Referer, E-Mails aus Meldungen).
Browser-SDK erst beim ersten Fehler nachgeladen.
- ReportErrorSignals: tote interne Links (404 mit eigenem Referrer), 403/429
für Angemeldete, 419 als gedrosselte Warnung.
- /health (Bearer-Token): DB, Cache, Queue-Rückstau, Scheduler-Herzschlag,
Plattenplatz → 200/503; Scheduler und Plattenplatz auch im Systemstatus.
- OperationalAlert zusätzlich per ntfy (JSON-POST), unabhängig von der Mail.
- Verlauf: login_failed (Grund unbekannt/kein Passwort/falsch),
login_lockout, two_factor_failed; IP nur als gekürzter HMAC.
- Umami: Kundenbereich mit eigenem Schalter und identify('user-<id>'),
nie im Admin/bei Impersonation; Query-Filter auch auf den Webseiten
(signierte Links gingen bisher an Umami).
- queue:prune-failed nach 30 Tagen.
- Versionsnummer: config('app.version') aus APP_VERSION oder Datei RELEASE
(git describe --tags), in GlitchTip, /health, Systemstatus, artisan about.
Plan: dev/betrieb/monitoring-plan.md (Entscheidungen M1–M9).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
66 lines
1.7 KiB
JavaScript
66 lines
1.7 KiB
JavaScript
/**
|
|
* Vite-Konfiguration für Backend/Admin (FluxUI)
|
|
* - Domain: pressekonto.test (Admin, Customer, Auth)
|
|
* - Asset-Subdomain: assets.pressekonto.test
|
|
* - Port: 5177
|
|
* - Build: public/build/portal
|
|
*
|
|
* Öffentliche Hub-Landing und Frontends → vite.web.config.js (dev:web)
|
|
*
|
|
* Starten mit: npm run dev:portal
|
|
*/
|
|
import { defineConfig } from "vite";
|
|
import laravel from "laravel-vite-plugin";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import {
|
|
PORTAL_HMR_HOST,
|
|
PORTAL_HOT_FILE,
|
|
PORTAL_PORT,
|
|
createWatchIgnored,
|
|
portalRefreshPaths,
|
|
portalWatchDirs,
|
|
} from "./vite.shared.js";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
laravel({
|
|
input: [
|
|
"resources/css/portal.css",
|
|
"resources/js/app.js",
|
|
"resources/js/portal-form-hooks.js",
|
|
"resources/js/error-reporting.js",
|
|
],
|
|
refresh: portalRefreshPaths,
|
|
hotFile: PORTAL_HOT_FILE,
|
|
}),
|
|
tailwindcss({
|
|
config: "./tailwind.portal.config.js",
|
|
}),
|
|
],
|
|
server: {
|
|
https: false,
|
|
cors: true,
|
|
host: "0.0.0.0",
|
|
port: PORTAL_PORT,
|
|
strictPort: true,
|
|
allowedHosts: ["pressekonto.test", PORTAL_HMR_HOST, "localhost", "0.0.0.0"],
|
|
watch: {
|
|
ignored: createWatchIgnored(portalWatchDirs),
|
|
},
|
|
hmr: {
|
|
host: PORTAL_HMR_HOST,
|
|
protocol: "wss",
|
|
},
|
|
origin: `https://${PORTAL_HMR_HOST}`,
|
|
},
|
|
build: {
|
|
outDir: "public/build/portal",
|
|
assetsDir: "",
|
|
manifest: "manifest.json",
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: undefined,
|
|
},
|
|
},
|
|
},
|
|
});
|