Files
k-photos/.env.example
Gabriel Kaszewski 957737ac9b feat: frontend MVP — auth, timeline, upload, albums, admin, image viewer
Backend:
- user roles (DB + JWT + first-user-is-admin)
- volume-aware file resolver (multi-volume asset serving)
- directory scanner uses volume URI directly
- date-summary endpoint (capture date from EXIF)
- timeline ordered by capture date
- list endpoints: volumes, plugins, pipelines, library paths
- delete endpoints: volumes, library paths
- configurable upload body limit (MAX_UPLOAD_BYTES)

Frontend:
- auth: login/register, token refresh, role-based admin gate
- timeline: date-grouped grid, infinite scroll, date scrubber
- image viewer: fullscreen zoom/pan/pinch, metadata sidebar
- upload: drag-drop, sequential upload, progress tracking
- albums: create, add/remove photos, asset picker dialog
- admin: storage (import library), jobs (pagination, error details),
  plugins (list + toggle), pipelines, sidecars, duplicates
- multi-select mode with add-to-album action
- TanStack Query for all data fetching
2026-06-01 01:35:43 +02:00

46 lines
1.9 KiB
Plaintext

# ============================================================================
# K-Photos Configuration
# ============================================================================
# Copy this file to .env and adjust values for your environment.
# ============================================================================
# Server
# ============================================================================
HOST=0.0.0.0
PORT=8000
# ============================================================================
# Database
# ============================================================================
DATABASE_URL=postgres://kphotos:kphotos@localhost:5432/kphotos
# ============================================================================
# JWT
# ============================================================================
JWT_SECRET=change-me-in-production-at-least-32-characters
# ============================================================================
# NATS
# ============================================================================
NATS_URL=nats://localhost:4222
# ============================================================================
# CORS
# ============================================================================
CORS_ALLOWED_ORIGINS=http://localhost:8000,http://localhost:5173
# ============================================================================
# Storage
# ============================================================================
STORAGE_PATH=./data/media
# ============================================================================
# Uploads (default 256 MiB)
# ============================================================================
# MAX_UPLOAD_BYTES=268435456
# ============================================================================
# Logging
# ============================================================================
RUST_LOG=info