Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions app/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,12 @@ SMTP_SECURE=false
SMTP_FROM=
SMTP_REPLY_TO=
APP_URL=http://localhost:3000

# ============================================
# Analytics (optional)
# ============================================
# Self-hosted Umami analytics. Set both to enable tracking.
# Privacy-friendly, GDPR-compliant, no cookies.
# https://umami.is/
UMAMI_URL=
UMAMI_WEBSITE_ID=
10 changes: 10 additions & 0 deletions app/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,16 @@ export default defineNuxtConfig({
{ rel: "icon", type: "image/png", href: "/favicon.png" },
{ rel: "apple-touch-icon", href: "/icons/icon-192.png" },
],
// Optional analytics - configured via UMAMI_URL and UMAMI_WEBSITE_ID env vars
script: process.env["UMAMI_URL"] && process.env["UMAMI_WEBSITE_ID"]
? [
{
src: process.env["UMAMI_URL"],
defer: true,
"data-website-id": process.env["UMAMI_WEBSITE_ID"],
},
]
: [],
},
},

Expand Down
27 changes: 20 additions & 7 deletions docs/ENVIRONMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,26 @@ volumes:

### Environment Variables

| Variable | Required | Default | Purpose |
| --------------- | ----------- | ----------------------- | --------------------------- |
| `DATABASE_URL` | No | `file:/data/db.sqlite` | Database path |
| `NODE_ENV` | No | `production` | Environment mode |
| `APP_URL` | Recommended | `http://localhost:3000` | Public URL for emails/links |
| `VOICE_ENABLED` | No | `true` | Enable voice input |
| `GROQ_API_KEY` | No | - | Voice transcription API |
| Variable | Required | Default | Purpose |
| ------------------- | ----------- | ----------------------- | ------------------------------------ |
| `DATABASE_URL` | No | `file:/data/db.sqlite` | Database path |
| `NODE_ENV` | No | `production` | Environment mode |
| `APP_URL` | Recommended | `http://localhost:3000` | Public URL for emails/links |
| `VOICE_ENABLED` | No | `true` | Enable voice input |
| `GROQ_API_KEY` | No | - | Voice transcription API |
| `UMAMI_URL` | No | - | Umami analytics script URL |
| `UMAMI_WEBSITE_ID` | No | - | Umami website ID for tracking |

#### Analytics (Optional)

To enable [Umami](https://umami.is/) analytics, set both environment variables:

```bash
UMAMI_URL=https://your-umami-instance.com/script.js
UMAMI_WEBSITE_ID=your-website-uuid
```

This is optional and privacy-friendly — no data is collected unless you configure it.

---

Expand Down
Loading