The EU image loads 9 spaCy language models which takes ~2 minutes.
The previous 30-second timeout caused PasteGuard to restart multiple
times before Presidio was ready.
- Increase default timeout from 30s to 180s
- Add PRESIDIO_STARTUP_TIMEOUT env var for customization
- Document startup time in config and docs
Fixes #58
- **`:en` image** → English only
- **`:eu` image** → English, German, Spanish, French, Italian, Dutch, Polish, Portuguese, Romanian
+Each language adds ~10s to startup time as spaCy models are loaded.
+
For custom language builds:
```bash
const detector = getPIIDetector();
- // Wait for Presidio to be ready
+ // Wait for Presidio to be ready (multi-language setups need longer to load spaCy models)
+ const startupTimeout = Number(process.env.PASTEGUARD_STARTUP_TIMEOUT) || 180;
console.log("[STARTUP] Connecting to Presidio...");
- const ready = await detector.waitForReady(30, 1000);
+ const ready = await detector.waitForReady(startupTimeout, 1000);
if (!ready) {
console.error(