Added GraphiQL disable.
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user