Added GraphiQL disable.
This commit is contained in:
parent
123d4155b4
commit
18f75595da
|
@ -13,6 +13,7 @@ module.exports = {
|
|||
database: 'traxxx',
|
||||
},
|
||||
timeout: 5000,
|
||||
graphiql: false,
|
||||
},
|
||||
web: {
|
||||
host: '0.0.0.0',
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
module.exports = {
|
||||
apps: [
|
||||
// LEAFS
|
||||
{
|
||||
name: 'traxxx',
|
||||
script: 'src/init.js',
|
||||
|
|
|
@ -27,7 +27,7 @@ function initPostgraphile(credentials) {
|
|||
// watchPg: true,
|
||||
disableDefaultMutations: true,
|
||||
dynamicJson: true,
|
||||
graphiql: true,
|
||||
graphiql: config.database.graphiql,
|
||||
enhanceGraphiql: true,
|
||||
allowExplain: () => true,
|
||||
// simpleCollections: 'only',
|
||||
|
|
|
@ -72,6 +72,7 @@ async function initServer() {
|
|||
const store = new KnexSessionStore({ knex });
|
||||
|
||||
app.set('view engine', 'ejs');
|
||||
app.disable('x-powered-by');
|
||||
|
||||
router.use('/media', express.static(config.media.path));
|
||||
router.use(express.static('public'));
|
||||
|
|
Loading…
Reference in New Issue