{
  "service": {
    "name": "Northstar Photos",
    "version": "2.4.1",
    "environment": "production",
    "publicUrl": "https://photos.example.net",
    "timezone": "America/Toronto",
    "features": {
      "publicSharing": true,
      "facialRecognition": true,
      "objectDetection": true,
      "mapView": true,
      "rawImageSupport": true,
      "videoTranscoding": true,
      "automaticBackups": true
    }
  },
  "storage": {
    "libraryPath": "/srv/photos/library",
    "uploadsPath": "/srv/photos/uploads",
    "thumbnailsPath": "/srv/photos/cache/thumbnails",
    "capacityBytes": 8796093022208,
    "usedBytes": 3478924521472,
    "allowedExtensions": [
      "jpg",
      "jpeg",
      "png",
      "webp",
      "heic",
      "dng",
      "cr2",
      "nef",
      "mp4",
      "mov"
    ],
    "deduplication": {
      "enabled": true,
      "algorithm": "sha256",
      "perceptualMatching": true,
      "similarityThreshold": 0.96
    }
  },
  "database": {
    "engine": "postgresql",
    "host": "photo-db",
    "port": 5432,
    "name": "photo_library",
    "ssl": false,
    "pool": {
      "minimumConnections": 2,
      "maximumConnections": 20,
      "idleTimeoutSeconds": 30
    }
  },
  "processing": {
    "workers": 4,
    "thumbnailSizes": [
      {
        "name": "small",
        "width": 320,
        "height": 320,
        "fit": "cover",
        "quality": 78
      },
      {
        "name": "medium",
        "width": 1280,
        "height": 1280,
        "fit": "inside",
        "quality": 84
      },
      {
        "name": "large",
        "width": 2560,
        "height": 2560,
        "fit": "inside",
        "quality": 88
      }
    ],
    "machineLearning": {
      "provider": "local",
      "endpoint": "http://photo-ml:3003",
      "models": {
        "faceDetection": "buffalo_l",
        "imageClassification": "clip-vit-b-32",
        "ocr": "tesseract-5"
      },
      "hardwareAcceleration": {
        "enabled": true,
        "device": "cuda",
        "deviceId": 0
      }
    },
    "video": {
      "targetCodec": "h264",
      "maximumResolution": "2160p",
      "hardwareAcceleration": "nvenc",
      "preserveOriginal": true
    }
  },
  "authentication": {
    "localLogin": true,
    "registrationEnabled": false,
    "sessionLifetimeHours": 168,
    "oidc": {
      "enabled": true,
      "issuerUrl": "https://auth.example.net/realms/home",
      "clientId": "northstar-photos",
      "scopes": [
        "openid",
        "profile",
        "email"
      ],
      "autoRegister": false
    }
  },
  "users": [
    {
      "id": "usr_01HZAJ6Q8T4V7M3K2P9R5C1XBN",
      "displayName": "Alex Morgan",
      "email": "alex@example.net",
      "role": "admin",
      "quotaBytes": null,
      "preferences": {
        "theme": "system",
        "language": "en-CA",
        "defaultSort": "capturedAt_desc",
        "showLocation": true
      },
      "statistics": {
        "assetCount": 28417,
        "albumCount": 83,
        "storageUsedBytes": 1837465927381
      }
    },
    {
      "id": "usr_01HZAJ8C7N2D5F9Q4M6V3K0WRT",
      "displayName": "Jamie Chen",
      "email": "jamie@example.net",
      "role": "user",
      "quotaBytes": 2199023255552,
      "preferences": {
        "theme": "dark",
        "language": "en",
        "defaultSort": "uploadedAt_desc",
        "showLocation": false
      },
      "statistics": {
        "assetCount": 17604,
        "albumCount": 41,
        "storageUsedBytes": 936482017264
      }
    }
  ],
  "albums": [
    {
      "id": "alb_01J0K81MPRV6X4C2QTY9F3N7AB",
      "title": "Cabot Trail, Autumn 2025",
      "description": "Road trip through Cape Breton during peak fall colours.",
      "ownerId": "usr_01HZAJ6Q8T4V7M3K2P9R5C1XBN",
      "createdAt": "2025-10-19T21:14:08Z",
      "updatedAt": "2025-11-02T15:42:31Z",
      "assetCount": 486,
      "coverAsset": {
        "id": "ast_01J0K8D63F2WY7R9M4NQX1CVAB",
        "filename": "DSC_8421.NEF",
        "mediaType": "image",
        "capturedAt": "2025-10-12T17:38:44-03:00",
        "dimensions": {
          "width": 6048,
          "height": 4024
        },
        "location": {
          "latitude": 46.7382,
          "longitude": -60.6505,
          "city": "Ingonish",
          "region": "Nova Scotia",
          "country": "Canada"
        }
      },
      "sharedWith": [
        {
          "userId": "usr_01HZAJ8C7N2D5F9Q4M6V3K0WRT",
          "permission": "editor"
        }
      ],
      "tags": [
        "road-trip",
        "autumn",
        "landscape",
        "nova-scotia"
      ]
    },
    {
      "id": "alb_01J18P7N5CY2M6RQ4V8F0K3XWT",
      "title": "Family Archive",
      "description": "Scanned prints and restored family photographs.",
      "ownerId": "usr_01HZAJ8C7N2D5F9Q4M6V3K0WRT",
      "createdAt": "2024-03-08T02:17:43Z",
      "updatedAt": "2026-07-28T23:06:19Z",
      "assetCount": 2319,
      "coverAsset": {
        "id": "ast_01J18Q0X6DV5N7R3M2K9CB4YPT",
        "filename": "scan_1978_07_014.tif",
        "mediaType": "image",
        "capturedAt": "1978-07-01T12:00:00Z",
        "dimensions": {
          "width": 4812,
          "height": 3208
        },
        "location": null
      },
      "sharedWith": [
        {
          "userId": "usr_01HZAJ6Q8T4V7M3K2P9R5C1XBN",
          "permission": "viewer"
        }
      ],
      "tags": [
        "archive",
        "family",
        "scans"
      ]
    }
  ],
  "sharing": {
    "defaultExpirationDays": 30,
    "allowDownloads": true,
    "requirePasswordByDefault": false,
    "maximumAssetsPerLink": 5000
  },
  "backup": {
    "enabled": true,
    "schedule": "0 3 * * *",
    "destination": {
      "type": "s3-compatible",
      "endpoint": "https://objects.example.net",
      "bucket": "northstar-photo-backups",
      "region": "ca-central-1",
      "prefix": "production/"
    },
    "retention": {
      "daily": 14,
      "weekly": 8,
      "monthly": 12
    },
    "encryption": {
      "enabled": true,
      "algorithm": "AES-256-GCM"
    },
    "lastRun": {
      "startedAt": "2026-08-01T07:00:02Z",
      "completedAt": "2026-08-01T07:38:47Z",
      "status": "success",
      "filesUploaded": 137,
      "bytesUploaded": 4827361941,
      "warnings": []
    }
  },
  "health": {
    "status": "healthy",
    "checkedAt": "2026-08-01T14:22:09Z",
    "components": [
      {
        "name": "database",
        "status": "healthy",
        "latencyMs": 4
      },
      {
        "name": "object-storage",
        "status": "healthy",
        "latencyMs": 38
      },
      {
        "name": "machine-learning",
        "status": "healthy",
        "latencyMs": 12
      },
      {
        "name": "background-workers",
        "status": "degraded",
        "details": {
          "activeWorkers": 3,
          "configuredWorkers": 4,
          "queuedJobs": 219
        }
      }
    ]
  }
}