mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
Initial commit
This commit is contained in:
commit
36fe34e8e1
583 changed files with 91539 additions and 0 deletions
55
server/config/http.js
Normal file
55
server/config/http.js
Normal file
|
@ -0,0 +1,55 @@
|
|||
/**
|
||||
* HTTP Server Settings
|
||||
* (sails.config.http)
|
||||
*
|
||||
* Configuration for the underlying HTTP server in Sails.
|
||||
* (for additional recommended settings, see `config/env/production.js`)
|
||||
*
|
||||
* For more information on configuration, check out:
|
||||
* https://sailsjs.com/config/http
|
||||
*/
|
||||
|
||||
module.exports.http = {
|
||||
/****************************************************************************
|
||||
* *
|
||||
* Sails/Express middleware to run for every HTTP request. *
|
||||
* (Only applies to HTTP requests -- not virtual WebSocket requests.) *
|
||||
* *
|
||||
* https://sailsjs.com/documentation/concepts/middleware *
|
||||
* *
|
||||
****************************************************************************/
|
||||
|
||||
middleware: {
|
||||
/***************************************************************************
|
||||
* *
|
||||
* The order in which middleware should be run for HTTP requests. *
|
||||
* (This Sails app's routes are handled by the "router" middleware below.) *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
// order: [
|
||||
// 'cookieParser',
|
||||
// 'session',
|
||||
// 'bodyParser',
|
||||
// 'compress',
|
||||
// 'poweredBy',
|
||||
// 'router',
|
||||
// 'www',
|
||||
// 'favicon',
|
||||
// ],
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* The body parser that will handle incoming multipart HTTP requests. *
|
||||
* *
|
||||
* https://sailsjs.com/config/http#?customizing-the-body-parser *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
// bodyParser: (function _configureBodyParser(){
|
||||
// var skipper = require('skipper');
|
||||
// var middlewareFn = skipper({ strict: true });
|
||||
// return middlewareFn;
|
||||
// })(),
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue