feat: Strapi fresh install

This commit is contained in:
Aitor Urrutia
2022-01-14 19:08:34 +01:00
parent a7cdf90231
commit 04f8242dad
21 changed files with 10485 additions and 0 deletions

5
back/config/admin.js Normal file
View File

@@ -0,0 +1,5 @@
module.exports = ({ env }) => ({
auth: {
secret: env('ADMIN_JWT_SECRET', '7ac8d91e1521dcac33d2a5105d9f828f'),
},
});

7
back/config/api.js Normal file
View File

@@ -0,0 +1,7 @@
module.exports = {
rest: {
defaultLimit: 25,
maxLimit: 100,
withCount: true,
},
};

11
back/config/database.js Normal file
View File

@@ -0,0 +1,11 @@
const path = require('path');
module.exports = ({ env }) => ({
connection: {
client: 'sqlite',
connection: {
filename: path.join(__dirname, '..', env('DATABASE_FILENAME', '.tmp/data.db')),
},
useNullAsDefault: true,
},
});

View File

@@ -0,0 +1,11 @@
module.exports = [
'strapi::errors',
'strapi::security',
'strapi::cors',
'strapi::poweredBy',
'strapi::logger',
'strapi::query',
'strapi::body',
'strapi::favicon',
'strapi::public',
];

4
back/config/server.js Normal file
View File

@@ -0,0 +1,4 @@
module.exports = ({ env }) => ({
host: env('HOST', '0.0.0.0'),
port: env.int('PORT', 1337),
});