Skip to content

Configuration

shvquu edited this page Jun 13, 2026 · 4 revisions

Configuration

Storage

ServerDoctor persists every completed scan so you can review history and trends.

Backend Status Notes
SQLite ✅ Default File at plugins/ServerDoctor/serverdoctor.db
In-memory ✅ Fallback Used automatically if SQLite can't be initialized; data is lost on restart
PostgreSQL 🚧 Planned
MariaDB 🚧 Planned

If the SQLite driver or file is unavailable for any reason, ServerDoctor logs a warning and falls back to in-memory storage so the plugin keeps working.

Resetting stored data

Stop the server and delete plugins/ServerDoctor/serverdoctor.db. A fresh database is created on the next start.

Background scan

ServerDoctor performs an automatic asynchronous scan every 5 minutes. Results are persisted and high-severity findings are logged to console. (A configurable interval is planned for a future release.)

Programmatic configuration (embedders)

If you embed the storage module directly, you can choose a backend via StorageConfig:

StorageProvider store = StorageProviders.create(StorageConfig.sqlite("data/serverdoctor.db"));
store.initialize();
// or StorageConfig.memory()

Clone this wiki locally