feat: Strapi fresh install
This commit is contained in:
5
back/config/admin.js
Normal file
5
back/config/admin.js
Normal file
@@ -0,0 +1,5 @@
|
||||
module.exports = ({ env }) => ({
|
||||
auth: {
|
||||
secret: env('ADMIN_JWT_SECRET', '7ac8d91e1521dcac33d2a5105d9f828f'),
|
||||
},
|
||||
});
|
||||
7
back/config/api.js
Normal file
7
back/config/api.js
Normal file
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
rest: {
|
||||
defaultLimit: 25,
|
||||
maxLimit: 100,
|
||||
withCount: true,
|
||||
},
|
||||
};
|
||||
11
back/config/database.js
Normal file
11
back/config/database.js
Normal 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,
|
||||
},
|
||||
});
|
||||
11
back/config/middlewares.js
Normal file
11
back/config/middlewares.js
Normal 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
4
back/config/server.js
Normal file
@@ -0,0 +1,4 @@
|
||||
module.exports = ({ env }) => ({
|
||||
host: env('HOST', '0.0.0.0'),
|
||||
port: env.int('PORT', 1337),
|
||||
});
|
||||
Reference in New Issue
Block a user