import { registerAs } from "@nestjs/config";

export const minioConfig = registerAs("minio", () => ({
  endPoint: process.env.MINIO_ENDPOINT || "minio-dev.smart.aaca.gov.et",
  port: parseInt(process.env.MINIO_PORT || "443", 10),
  useSSL: process.env.MINIO_USE_SSL !== "false",
  accessKey: process.env.MINIO_ACCESS_KEY || "",
  secretKey: process.env.MINIO_SECRET_KEY || "",
  bucket: process.env.MINIO_BUCKET || "fhc",
}));
