Whether we should auto handle 404s
Whether we should auto handle options
Whether we will automatically parse JSON request bodies
Whether we will automatically parse RAW request bodies
Whether we will automatically parse Text request bodies
Whether we will automatically parse URLEncoded request bodies
Whether we will automatically parse XML request bodies
Whether we should return the default list of recommended headers with every request
Whether to automatically start cloudflared tunnel
TCP backlog for the underlying server
Body size limit in MB
Whether compression should be enabled by default
Secret(s) used for cookie signing
The CORS origin to allow. Accepts either a single string (legacy form) or
a full options bag (origin/methods/allowedHeaders/exposedHeaders/
credentials/maxAge/preflightContinue/optionsSuccessStatus). When
credentials: true, the wildcard origin * is reflected to the request's
Origin header instead of being emitted literally.
OptionalerrorOptional sink invoked when the library would otherwise silently swallow an internal error (e.g. an unparseable Authorization header, a malformed JSON cookie, or a throwing logging callback). The sink receives the error and a stable string context. Thrown sink errors are caught and discarded.
Helmet module options
The host address to bind to
Defines how request logging is handled.
For true: High level information of each Request will be logged as debug to the console/file
For full: Headers and the Request body (if POST/PATCH/PUT) are also provided in the log entry
For callback: Full log entries are provided to the specified callback method, and the entry will
not be passed to the standard logging facility.
The bind port for the server
Whether we enable session support
Note: At a minimum, a secret must be supplied if options are specified
Whether SSL should be enabled
The SSL certificate file and/or data.
Note: If a string is specified, a full path is expected
The SSL private key file and/or data
Note: If a string is specified, a full path is expected
If set to true, allows node to crash via thrown exceptions If set to false (or unset), thrown exceptions are swallowed and logged automatically
OptionalwsAuthentication provider applied to every WebSocket route that does not
specify its own. Per-route auth (via app.ws(route, auth, handler) or
ProtectedRouter().ws(...)) overrides this fallback.
OptionalwsMaximum time in milliseconds an AuthenticationProvider is allowed to
take during a WebSocket handshake before the upgrade is denied with
HTTP 504. Set to 0 to disable. Prevents a hung provider from holding
sockets open indefinitely.
WebSocket server options
Automatic XML body parser handling options
Whether we enable the content security policy header by default. Set to an object of directives (e.g.
{ 'default-src': "'self'", 'img-src': ['*'] }) to override the defaultdefault-src 'self'policy.