Skip to main content

Enumeration: JovaSettingsOptions

Defined in: src/types/jova/config/enums/jovaCustomSettingEnum.ts:8

Enumeration Members

Enumeration MemberValueDescriptionDefined in
CaseSensitive"case sensitive routing"Name CaseSensitive Description Enable case sensitivity. When enabled, "/Foo" and "/foo" are different routes. When disabled, "/Foo" and "/foo" are treated the same. NOTE: Sub-apps will inherit the value of this setting. See Express.js Documentation Default undefinedsrc/types/jova/config/enums/jovaCustomSettingEnum.ts:22
Environment"env"Name Environment Description Environment mode. Be sure to set to "production" in a production environment See Express.js Documentation Default `process.env.NODE_ENV"development"`
ETag"etag"Name ETag Description Set the ETag response header. See Express.js Documentation Default "weak"src/types/jova/config/enums/jovaCustomSettingEnum.ts:42
JSONEscape"json escape"Name JSONEscape Description Enable escaping JSON responses from the res.json, res.jsonp, and res.send APIs. The purpose of this it to assist with mitigating certain types of persistent XSS attacks when clients sniff responses for HTML. See Express.js Documentation Default undefinedsrc/types/jova/config/enums/jovaCustomSettingEnum.ts:64
JSONPCallback"jsonp callback name"Name JSONPCallback Description Specifies the default JSONP callback name. See Express.js Documentation Default "callback"src/types/jova/config/enums/jovaCustomSettingEnum.ts:52
JSONReplacer"json replacer"Name JSONReplacer Description The 'replacer' argument used by JSON.stringify. NOTE: Sub-apps will inherit the value of this setting. See Express.js Documentation Default undefinedsrc/types/jova/config/enums/jovaCustomSettingEnum.ts:77
JSONSpaces"json spaces"Name JSONSpaces Description The 'space' argument used by JSON.stringify. This is typically set to the number of spaces to use to indent prettified JSON. NOTE: Sub-apps will inherit the value of this setting. See Express.js Documentation Default undefinedsrc/types/jova/config/enums/jovaCustomSettingEnum.ts:91
PoweredBy"x-powered-by"Name PoweredBy Description Enables the "X-Powered-By: Express" HTTP header. See Express.js Documentation Default truesrc/types/jova/config/enums/jovaCustomSettingEnum.ts:202
QueryParser"query parser"Name QueryParser Description Disable query parsing by setting the value to false, or set the query parser to use either "simple" or "extended" or a custom query string parsing function. The simple query parser is based on Node’s native query parser, querystring. The extended query parser is based on qs. A custom query string parsing function will receive the complete query string, and must return an object of query keys and their values. See Express.js Documentation Default "extended"src/types/jova/config/enums/jovaCustomSettingEnum.ts:108
StrictRouting"strict routing"Name StrictRouting Description Enable strict routing. When enabled, the router treats "/foo" and "/foo/" as different. Otherwise, the router treats "/foo" and "/foo/" as the same. NOTE: Sub-apps will inherit the value of this setting. See Express.js Documentation Default undefinedsrc/types/jova/config/enums/jovaCustomSettingEnum.ts:122
SubdomainOffset"subdomain offset"Name SubdomainOffset Description The number of dot-separated parts of the host to remove to access subdomain. See Express.js Documentation Default 2src/types/jova/config/enums/jovaCustomSettingEnum.ts:133
TrustProxy"trust proxy"Name TrustProxy Description Indicates the app is behind a front-facing proxy, and to use the X-Forwarded-* headers to determine the connection and the IP address of the client. NOTE: X-Forwarded-* headers are easily spoofed and the detected IP addresses are unreliable. When enabled, Express attempts to determine the IP address of the client connected through the front-facing proxy, or series of proxies. The req.ips property, then contains an array of IP addresses the client is connected through. To enable it, use the values described in the trust proxy options table. The trust proxy setting is implemented using the proxy-addr package. For more information, see its documentation. NOTE: Sub-apps will inherit the value of this setting, even though it has a default value. See Express.js Documentation Default falsesrc/types/jova/config/enums/jovaCustomSettingEnum.ts:154
ViewCache"view cache"Name ViewCache Description Enables view template compilation caching. NOTE: Sub-apps will not inherit the value of this setting in production (when NODE_ENV is "production"). See Express.js Documentation Default `trueundefined`
ViewEngine"view engine"Name ViewEngine Description The default engine extension to use when omitted. NOTE: Sub-apps will inherit the value of this setting. See Express.js Documentation Default undefinedsrc/types/jova/config/enums/jovaCustomSettingEnum.ts:191
Views"views"Name Views Description A directory or an array of directories for the application's views. If an array, the views are looked up in the order they occur in the array See Express.js Documentation Default process.cwd() + '/views'src/types/jova/config/enums/jovaCustomSettingEnum.ts:165