Skip to content

Commit

Permalink
Add trustProxy option, as well as a try/catch to improve the readabil…
Browse files Browse the repository at this point in the history
…ity of certain types of unexpected, HTTP-server-related errors during lift.
  • Loading branch information
mikermcneil committed Dec 8, 2016
1 parent d68aeee commit 552d4ae
Show file tree
Hide file tree
Showing 2 changed files with 308 additions and 291 deletions.
4 changes: 3 additions & 1 deletion lib/hooks/http/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@ module.exports = function(sails) {
// • http://nodejs.org/docs/v7.0.0/api/https.html#https_class_https_server
serverOptions: undefined,


// Custom express middleware function to use.
// (FUTURE: add deprecation message if this is attempted-- instead recommend using an arbitrary middleware)
customMiddleware: undefined,

// Should be left undefined unless behind a proxy.
// (this is passed in to Express as the "trust proxy" setting)
trustProxy: undefined,

}//< .http>

Expand Down
Loading

0 comments on commit 552d4ae

Please sign in to comment.