Settings

The application settings are properties set on the application instance. The following are currently supported:

  • app.env: This defaults to the NODE_ENV or development.
  • app.proxy: When set to true, proxy header fields will be trusted. This simply means that the X-Forwarded-* header fields may be trusted.
  • app.subdomainOffset offset of .subdomains to ignore. Its value is 2 by default. The use of this can be illustrated with an example taken from the Koa documentation:
"...if the domain is "tobi.ferrets.example.com": If app.subdomainOffset is not set, ctx.subdomains is ["ferrets", "tobi"]. If app.subdomainOffset is 3, ctx.subdomains is ["tobi"]."
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.42.196