Some checks failed
Build release Docker image / Build Docker Images (push) Failing after 32s
35 lines
1.0 KiB
TypeScript
35 lines
1.0 KiB
TypeScript
import cronTasks from "./cron-tasks";
|
|
|
|
export default ({ env }) => {
|
|
// DEBUG: On vérifie ce que Strapi reçoit vraiment
|
|
//const appKeys = env.array("APP_KEYS");
|
|
const appKeys = env.array("APP_KEYS", ["defaultKey1", "defaultKey2"]);
|
|
console.log("------------------------------------------------");
|
|
console.log("Key Check:", appKeys.length > 0 ? "CHARGÉES ✅" : "VIDES ❌");
|
|
console.log("Key Type:", typeof appKeys[0]); // Doit afficher 'string'
|
|
console.log("Host:", env("HOST", "0.0.0.0"));
|
|
console.log("------------------------------------------------");
|
|
return {
|
|
host: env("HOST", "0.0.0.0"),
|
|
port: env.int("PORT", 1337),
|
|
url: env("STRAPI_URL", "http://localhost:1337"),
|
|
app: {
|
|
// ON FORCE UN TABLEAU EN DUR ICI :
|
|
keys: [
|
|
"UneSuperClefSecreteTresLongueEtAleatoire123",
|
|
"UneAutreClefDeSecours456",
|
|
],
|
|
},
|
|
cron: {
|
|
enabled: true,
|
|
tasks: cronTasks,
|
|
},
|
|
proxy: false,
|
|
admin: {
|
|
auth: {
|
|
secret: env("ADMIN_JWT_SECRET"),
|
|
},
|
|
},
|
|
};
|
|
};
|