Files
k-photos/.env.example
Gabriel Kaszewski 0077caa743 feat: safe deletion, album/asset delete, trash, README update
- volume-aware deletion: read-only volumes remove DB only, writable
  volumes soft-delete to trash with configurable grace period
- trash page with restore, worker purge sweep (TRASH_RETENTION_DAYS)
- album delete endpoint + sidebar trash icon
- asset delete from timeline selection toolbar
- all listing queries exclude trashed assets (deleted_at IS NULL)
- timeline ordered by EXIF capture date, date-summary endpoint
- README rewritten with features, setup, full env var table
2026-06-01 01:57:53 +02:00

51 lines
2.1 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
# ============================================================================
# Trash (default 30 days before permanent purge)
# ============================================================================
# TRASH_RETENTION_DAYS=30
# ============================================================================
# Logging
# ============================================================================
RUST_LOG=info