mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:41:09 +02:00
Phase 1: Infrastructure - Add docker/prometheus/prometheus.yml with scrape configs for all services - Add docker/grafana/provisioning for auto-configured datasources - Add docker/grafana/dashboards (system-overview, backends-docker) - Update docker-compose.macmini.yml with monitoring services: - prometheus, grafana, node-exporter, cadvisor - postgres-exporter, redis-exporter, umami - Add grafana.mana.how and analytics.mana.how to Caddyfile Phase 2: Backend Metrics - Create packages/shared-nestjs-metrics with: - MetricsModule (auto /metrics endpoint) - MetricsService (Counter, Histogram, Gauge helpers) - MetricsMiddleware (auto HTTP request tracking) Phase 3: Umami Web Analytics - Add Umami tracking scripts to all landing pages - Add Umami tracking scripts to all web apps - Create scripts/mac-mini/setup-umami-db.sh Phase 4: Admin Dashboard (ManaCore Web) - Add admin routes: /admin, /admin/users, /admin/system - Create StatCard, QuickLinks, UserTable components - Add Admin link to navigation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
43 lines
1.4 KiB
Text
43 lines
1.4 KiB
Text
# Mac Mini Production Environment
|
|
# Copy to .env.macmini and fill in the values
|
|
|
|
# ============================================
|
|
# Database (PostgreSQL)
|
|
# ============================================
|
|
POSTGRES_PASSWORD=your-secure-password-here
|
|
|
|
# ============================================
|
|
# Redis
|
|
# ============================================
|
|
REDIS_PASSWORD=your-redis-password-here
|
|
|
|
# ============================================
|
|
# JWT Keys (generate with: openssl rand -base64 32)
|
|
# For EdDSA keys, use mana-core-auth key generation
|
|
# ============================================
|
|
JWT_SECRET=your-jwt-secret-here
|
|
# Leave empty to use auto-generated keys
|
|
JWT_PUBLIC_KEY=
|
|
JWT_PRIVATE_KEY=
|
|
|
|
# ============================================
|
|
# Supabase (optional, for legacy features)
|
|
# ============================================
|
|
SUPABASE_URL=
|
|
SUPABASE_SERVICE_ROLE_KEY=
|
|
|
|
# ============================================
|
|
# Azure OpenAI (for Chat AI features)
|
|
# ============================================
|
|
AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com/
|
|
AZURE_OPENAI_API_KEY=your-api-key-here
|
|
|
|
# ============================================
|
|
# Monitoring (Grafana)
|
|
# ============================================
|
|
GRAFANA_PASSWORD=your-grafana-admin-password
|
|
|
|
# ============================================
|
|
# Web Analytics (Umami)
|
|
# ============================================
|
|
UMAMI_APP_SECRET=your-umami-secret-here
|