@@ -112,3 +112,4 @@ exports | |||||
*.cache | *.cache | ||||
build | build | ||||
.strapi-updater.json | .strapi-updater.json | ||||
config/database.js |
@@ -1,15 +0,0 @@ | |||||
module.exports = ({ env }) => ({ | |||||
defaultConnection: 'default', | |||||
connections: { | |||||
default: { | |||||
connector: 'bookshelf', | |||||
settings: { | |||||
client: 'sqlite', | |||||
filename: env('DATABASE_FILENAME', '.tmp/data.db'), | |||||
}, | |||||
options: { | |||||
useNullAsDefault: true, | |||||
}, | |||||
}, | |||||
}, | |||||
}); |
@@ -0,0 +1,28 @@ | |||||
module.exports = ({ env }) => ({ | |||||
// email: { | |||||
// provider: "nodemailer", | |||||
// providerOptions: { | |||||
// host: env("SMTP_HOST"), | |||||
// port: env("SMTP_PORT"), | |||||
// secure: false, | |||||
// auth: { | |||||
// user: env("SMTP_USER"), | |||||
// pass: env("SMTP_PASSWORD"), | |||||
// }, | |||||
// }, | |||||
// settings: { | |||||
// defaultFrom: "noreply@thamrin.co.id", | |||||
// defaultReplyTo: "noreply@thamrin.co.id", | |||||
// }, | |||||
// }, | |||||
graphql: { | |||||
endpoint: "/graphql", | |||||
shadowCRUD: true, | |||||
playgroundAlways: true, | |||||
depthLimit: 7, | |||||
amountLimit: 1000, | |||||
apolloServer: { | |||||
tracing: false, | |||||
}, | |||||
}, | |||||
}); |
@@ -3,7 +3,7 @@ module.exports = ({ env }) => ({ | |||||
port: env.int('PORT', 1337), | port: env.int('PORT', 1337), | ||||
admin: { | admin: { | ||||
auth: { | auth: { | ||||
secret: env('ADMIN_JWT_SECRET', 'ea704c52f457e83bff1b8a05b9c3a835'), | |||||
secret: env('ADMIN_JWT_SECRET'), | |||||
}, | }, | ||||
}, | }, | ||||
}); | }); |
@@ -0,0 +1,15 @@ | |||||
module.exports = { | |||||
apps: [ | |||||
{ | |||||
name: "hotel_strapi", | |||||
script: "index.js", | |||||
exec_mode: "fork", | |||||
env: { | |||||
NODE_ENV: "development", | |||||
}, | |||||
env_production: { | |||||
NODE_ENV: "production", | |||||
}, | |||||
}, | |||||
], | |||||
}; |
@@ -0,0 +1,3 @@ | |||||
const strapi = require('strapi'); | |||||
strapi(/* {...} */).start(); |
@@ -9,9 +9,9 @@ | |||||
"build": "strapi build", | "build": "strapi build", | ||||
"strapi": "strapi" | "strapi": "strapi" | ||||
}, | }, | ||||
"devDependencies": {}, | |||||
"dependencies": { | "dependencies": { | ||||
"knex": "0.21.18", | "knex": "0.21.18", | ||||
"mysql": "^2.18.1", | |||||
"sqlite3": "5.0.0", | "sqlite3": "5.0.0", | ||||
"strapi": "3.6.8", | "strapi": "3.6.8", | ||||
"strapi-admin": "3.6.8", | "strapi-admin": "3.6.8", | ||||
@@ -32,8 +32,8 @@ | |||||
"uuid": "64646ad5-7507-4cd8-93e5-3dbc4aedf338" | "uuid": "64646ad5-7507-4cd8-93e5-3dbc4aedf338" | ||||
}, | }, | ||||
"engines": { | "engines": { | ||||
"node": ">=10.16.0 <=14.x.x", | |||||
"npm": "^6.0.0" | |||||
"node": ">=10.16.0 <=16.x.x", | |||||
"npm": "^7.9.0" | |||||
}, | }, | ||||
"license": "MIT" | "license": "MIT" | ||||
} | } |