Add Production Setup section to installation docs (#45)
authorStefan Gasser <redacted>
Sat, 17 Jan 2026 14:24:42 +0000 (15:24 +0100)
committerGitHub <redacted>
Sat, 17 Jan 2026 14:24:42 +0000 (15:24 +0100)
docs/installation.mdx

index fd9ab5ad9aed5e48630dc31b5282b7825b339a2b..b9e731449080b0baee5bd70e3060ffbdfc1f1d6b 100644 (file)
@@ -38,6 +38,30 @@ docker run --rm -p 3000:3000 ghcr.io/sgasser/pasteguard:eu
 
 Languages are auto-configured per image — no config changes needed. The EU image automatically enables all 9 European languages.
 
+## Production Setup
+
+For persistent logs and custom configuration:
+
+```bash
+# Download config
+curl -O https://raw.githubusercontent.com/sgasser/pasteguard/main/config.example.yaml
+mv config.example.yaml config.yaml
+
+# Create data directory
+mkdir -p data
+
+# Run with persistence
+docker run -d --name pasteguard --restart unless-stopped -p 3000:3000 \
+  -v ./config.yaml:/app/config.yaml:ro \
+  -v ./data:/app/data \
+  ghcr.io/sgasser/pasteguard:en
+```
+
+This gives you:
+- **Custom config** — edit `config.yaml` to change detection settings
+- **Persistent logs** — request history in `data/pasteguard.db` survives restarts
+- **Auto-restart** — container restarts automatically
+
 ## Custom Language Builds
 
 For languages not in prebuilt images (Nordic, Asian, Eastern European), clone and build:
git clone https://git.99rst.org/PROJECT