- 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>
69 lines
1.8 KiB
JavaScript
69 lines
1.8 KiB
JavaScript
/**
|
|
* Vite-Konfiguration für öffentliche Frontends (Web)
|
|
* - Domains: pressekonto.test (Hub), presseecho.test, businessportal24.test
|
|
* - Asset-Subdomains: assets.pressekonto.test, assets.presseecho.test, assets.businessportal24.test
|
|
* - Port: 5178
|
|
* - Build: public/build/web
|
|
*
|
|
* Backend/Admin auf pressekonto.test → vite.portal.config.js (dev:portal)
|
|
*
|
|
* Starten mit: npm run dev:web
|
|
*/
|
|
import { defineConfig } from "vite";
|
|
import laravel from "laravel-vite-plugin";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import {
|
|
WEB_ALLOWED_HOSTS,
|
|
WEB_CORS_ORIGINS,
|
|
WEB_HOT_FILE,
|
|
WEB_PORT,
|
|
createWatchIgnored,
|
|
webRefreshPaths,
|
|
webWatchDirs,
|
|
} from "./vite.shared.js";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
laravel({
|
|
input: [
|
|
"resources/css/web/theme-businessportal24.css",
|
|
"resources/css/web/theme-presseecho.css",
|
|
"resources/css/web/theme-pressekonto.css",
|
|
"resources/js/app.js",
|
|
"resources/js/error-reporting.js",
|
|
],
|
|
refresh: webRefreshPaths,
|
|
hotFile: WEB_HOT_FILE,
|
|
}),
|
|
tailwindcss({
|
|
config: "./tailwind.web.config.js",
|
|
}),
|
|
],
|
|
server: {
|
|
https: false,
|
|
watch: {
|
|
ignored: createWatchIgnored(webWatchDirs),
|
|
},
|
|
cors: {
|
|
origin: WEB_CORS_ORIGINS,
|
|
credentials: true,
|
|
},
|
|
host: "0.0.0.0",
|
|
port: WEB_PORT,
|
|
strictPort: true,
|
|
allowedHosts: WEB_ALLOWED_HOSTS,
|
|
hmr: {
|
|
protocol: "wss",
|
|
},
|
|
},
|
|
build: {
|
|
outDir: "public/build/web",
|
|
assetsDir: "",
|
|
manifest: "manifest.json",
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: undefined,
|
|
},
|
|
},
|
|
},
|
|
});
|