function getSslConfig() {
  const clientUrl = process.env.DATABASE_URL || "";
  const requireSsl = clientUrl.includes("sslmode=require") || clientUrl.includes("ssl=true") || process.env.DB_SSL === "true";
  if (!requireSsl) {
    return void 0;
  }
  return {
    rejectUnauthorized: process.env.DB_SSL_REJECT_UNAUTHORIZED !== "false"
  };
}
export {
  getSslConfig
};
//# sourceMappingURL=ssl.js.map
