From 8bb4a556b0157b422da2afa182ec278dc8b473de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=A9o=20M=C3=A9vollon?= Date: Wed, 12 Jun 2024 15:48:45 +0200 Subject: [PATCH] fix local db without ssl --- api/config/database.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/config/database.js b/api/config/database.js index b003cd8..2a1c82b 100644 --- a/api/config/database.js +++ b/api/config/database.js @@ -11,9 +11,9 @@ module.exports = ({ env }) => { database: env("DATABASE_NAME", "strapi"), user: env("DATABASE_USERNAME", "strapi"), password: env("DATABASE_PASSWORD", "strapi"), - ssl: { + ssl: env.bool("DATABASE_SSL", { rejectUnauthorized: env.bool("DATABASE_SSL_SELF", false), // For self-signed certificates - }, + }), }, }, sqlite: {