{
  "service": {
    "name": "home-photo-library",
    "version": "2.8.4",
    "environment": "production",
    "baseUrl": "https://photos.example.lan",
    "timezone": "America/Toronto"
  },
  "storage": {
    "libraryPath": "/srv/photos/library",
    "importPath": "/srv/photos/imports",
    "trashPath": "/srv/photos/.trash",
    "cachePath": "/var/cache/home-photo-library",
    "thumbnailSizes": [256, 720, 1440],
    "retention": {
      "trashDays": 30,
      "keepOriginals": true,
      "deduplicateOnImport": true
    }
  },
  "database": {
    "driver": "postgres",
    "host": "postgres",
    "port": 5432,
    "database": "photo_library",
    "ssl": false,
    "pool": {
      "minConnections": 2,
      "maxConnections": 20,
      "idleTimeoutSeconds": 60
    }
  },
  "users": [
    {
      "id": "usr_01J8S9XQ6Y8P7W4RZT0C1B2A3D",
      "email": "admin@example.lan",
      "displayName": "Admin",
      "role": "owner",
      "permissions": ["upload", "delete", "share", "manage_users"]
    },
    {
      "id": "usr_01J8SA0T2MNY8QG7VHD4F1KC9P",
      "email": "family@example.lan",
      "displayName": "Family",
      "role": "member",
      "permissions": ["upload", "share"]
    }
  ],
  "albums": [
    {
      "id": "alb_2025_summer_cabin",
      "title": "Summer Cabin 2025",
      "visibility": "private",
      "createdAt": "2025-08-17T19:24:12Z",
      "photoCount": 184,
      "coverPhotoId": "ph_01J8SC7K6T6QZCF3DP6N8N98A4",
      "sharedWith": ["usr_01J8SA0T2MNY8QG7VHD4F1KC9P"]
    }
  ],
  "indexing": {
    "enabled": true,
    "scanIntervalMinutes": 15,
    "workers": 4,
    "features": {
      "faceRecognition": true,
      "objectDetection": true,
      "reverseGeocoding": true,
      "rawSidecarSupport": true
    },
    "ignoredPatterns": [
      "**/.DS_Store",
      "**/Thumbs.db",
      "**/@eaDir/**",
      "**/*.tmp"
    ]
  },
  "api": {
    "pagination": {
      "defaultLimit": 50,
      "maxLimit": 250
    },
    "rateLimits": {
      "anonymousRequestsPerMinute": 30,
      "authenticatedRequestsPerMinute": 300
    },
    "cors": {
      "enabled": true,
      "allowedOrigins": [
        "https://photos.example.lan",
        "https://dashboard.example.lan"
      ]
    }
  },
  "backup": {
    "enabled": true,
    "schedule": "0 3 * * *",
    "destination": "s3://home-backups/photo-library",
    "encrypt": true,
    "lastSuccessfulRun": "2026-07-14T03:18:44Z"
  }
}