const mixinafBedSheet::BedSheetConfigIds
afBedSheet::BedSheetConfigIds
IocConfig values as provided by BedSheet. To change their value, override them in your AppModule
. Example:
@Contribute { serviceType=ApplicationDefaults# } static Void configureApplicationDefaults(MappedConfig conf) { conf[BedSheetConfigIds.gzipThreshold] = 500 }
- defaultErrProcessor
const static Str defaultErrProcessor := "afBedSheet.errProcessors.default"
The default ErrProcessor to use when no specific processor has been defined for a given Err.
Defaults to
conf.autobuild(DefaultErrProcessor#)
which sets the http status code in the response to 500 and renders the standard BedSheet verbose error page.- defaultHttpStatusProcessor
const static Str defaultHttpStatusProcessor := ...
The default HttpStatusProcessor to use when no specific processor has been defined for a given http status code.
Defaults to
conf.autobuild(DefaultHttpStatusProcessor#)
which sets the http status code in the response and renders the standard BedSheet status page.- disableWelcomePage
const static Str disableWelcomePage := "afBedSheet.disableWelcomePage"
Set to
true
to ensure the welcome page is never displayed.The welcome page is displayed in place of a 404 when no routes have been defined. So this config is useful if all your routing is done via
Middleware
.Defaults to
false
- gzipDisabled
const static Str gzipDisabled := "afBedSheet.gzip.disabled"
If set to
true
then all gzipping is disabled, regardless of other configuration.Defaults to
false
.- gzipThreshold
const static Str gzipThreshold := "afBedSheet.gzip.threshold"
The minimum output stream size, in bytes, before output is compressed using GZIP. Shorter streams are not compressed.
Defaults to
376
(bytes).- host
const static Str host := "afBedSheet.host"
Set host to the public facing domain. This config is not mandatory but is often required by 3rd party libraries when running in production mode, such as SiteMap and Google Analytics. Host may also be used to create absolute urls.
Defaults to
http://localhost:<PORT>
- noOfStackFrames
const static Str noOfStackFrames := "afBedSheet.errPrinter.noOfStackFrames"
The number of stack frames to print in logs and error pages.
Defaults to
50
- proxyPingInterval
const static Str proxyPingInterval := "afBedSheet.appDestroyer.pingInterval"
How often the
AppDestroyer
pings the proxy to keep the app alive.Defaults to
1sec
.- requestLogDir
const static Str requestLogDir := "afBedSheet.requestLog.dir"
Directory where request log files are to be written. Set to enable request logging. Must end in a trailing /slash/.
@see RequestLogFilter
- requestLogFields
const static Str requestLogFields := "afBedSheet.requestLog.fields"
Format of the web log records as a string of names.
Defaults to
date time c-ip cs(X-Real-IP) cs-method cs-uri-stem cs-uri-query sc-status time-taken cs(User-Agent) cs(Referer) cs(Cookie)
@see RequestLogFilter
- requestLogFilenamePattern
const static Str requestLogFilenamePattern := "afBedSheet.requestLog.filenamePattern"
Log filename pattern. The name may contain a pattern between
{}
using the pattern format ofDateTime.toLocale
. For example to maintain a log file per month, use a filename such asmylog-{YYYY-MM}.log
.Defaults to
afBedSheet-{YYYY-MM}.log
@see RequestLogFilter
- responseBufferThreshold
const static Str responseBufferThreshold := "afBedSheet.responseBuffer.threshold"
The buffer size (in bytes) of the response OutStream buffer. The buffer is used to automatically set the
Content-Length
response header. Any content larger than the buffer is streamed direct to the client.Defaults to
32 * 1024
(32Kb).- srcCodeErrPadding
const static Str srcCodeErrPadding := "afBedSheet.plastic.srcCodeErrPadding"
When printing
SrcCodeErrs
, this is the number of lines of code to print before and after the line in error.Defaults to
5