feat: critical fixes + health API + webhook + attack reports

- Fix busy-wait loop in ServerGuardService (removed while(true))
- Fix sync blocking on async Future (use thenAccept instead of .get())
- Add startup banner with system info and config validation
- Add HealthService: /api/health, /api/health/live, /api/health/ready
- Add RequestLoggingFilter for HTTP request monitoring
- Add CorsConfig for cross-origin support
- Add WebhookService (Discord/Slack notifications)
- Add AttackReportService with HTML report generation
- New endpoints: /api/attacks/recent, /api/attacks/report, /api/webhook/test
- Upgrade Lombok 1.18.30 to 1.18.38 for Java 25+ compatibility
This commit is contained in:
Peijun Zhao
2026-05-10 15:54:48 +08:00
parent 40e97d1fc6
commit 46d597d6ff
8 changed files with 661 additions and 90 deletions
+8
View File
@@ -165,6 +165,14 @@ serverguard:
require-engine-handshake: true
handshake-ttl-seconds: 30
webhook:
enabled: false
discord-url: ${ALUER_WEBHOOK_DISCORD:}
slack-url: ${ALUER_WEBHOOK_SLACK:}
report:
dir: ./reports
server:
port: 8080