I'm almost ashamed to ask this, but where can I find information about the settings for express.js? According to the documentation I can use app.set(name, setting)
to assign setting name
to setting
, however I can't find anywhere which settings there are and how they work.
You can find it here:
http://expressjs.com/api.html#app-settings
settings
The following settings are provided to alter how Express will behave:
env
Environment mode, defaults to process.env.NODE_ENV or "development"trust proxy
Enables reverse proxy support, disabled by defaultjsonp callback name
Changes the default callback name of ?callback=json replacer
JSON replacer callback, null by defaultjson spaces
JSON response spaces for formatting, defaults to 2 in development, 0 in productioncase sensitive routing
Enable case sensitivity, disabled by default, treating "/Foo" and "/foo" as the samestrict routing
Enable strict routing, by default "/foo" and "/foo/" are treated the same by the routerview cache
Enables view template compilation caching, enabled in production by defaultview engine
The default engine extension to use when omittedviews
The view directory path