app/config/server.js
, or a corresponding configuration file for the node environment.http
and https
protocol. You configure the protocols under the protocols
section of the server configuration file.http
where we are setting the port number. The http
hash is the options support for http.createServer
.https
where we are setting the port number, public key, and private key. The https
hash is the options support for https.createServer
.middleware
property. If a specific middleware configuration is not defined and it does not have a default configuration, then it is not loaded. The server supports the following Blueprint middleware, in order.middleware.morgan
property to configure morgan. If you do not provide a configuration for morgan, then a default one is provided. See the morgan documentation for available options.req.body
. bodyParser support different kinds of parsers, such as JSON and url encoded. middleware.bodyParser
to define the configuration for bodyParser. Each parser you want to support has a named configuration under middleware.bodyParser
. JSON and url encoded body parsers are always enabled. You, however, can change the configuration of JSON and url encoded body parsers, and include others supported by the bodyParser middleware.req.cookies
.middleware.cookies
property to configure the cookie-parser middleware. See the cookie-parser documentation for the available configuration options.req.session
data property.middleware.session
property to configure the express-session middleware. See the express-session documentation for the available configuration options.middleware.passport
data property to configure Passport. If middleware.passport.session
is defined in the server configuration file, then the server will configure session support with the Passport middleware. middleware.custom
property to configure custom middleware. The custom.middleware
property takes either a single Express middleware function, or an array of Express middleware functions.app/
directory. If the path is an absolute path, then the specified path is used as-is.