const mixinafBedSheet::ConfigIds
afBedSheet::ConfigIds
Config values as provided by BedSheet. To change their value, override them in your AppModule. Example:
@Contribute { serviceType=ApplicationDefaults# }
static Void configureApplicationDefaults(MappedConfig conf) {
conf[ConfigIds.gzipThreshold] = 500
}
- corsAllowCredentials
const static Str corsAllowCredentials := "afBedSheet.cors.allowCredentials"If set to
truetheAccess-Control-Allow-Credentialsresponse header is set. Defaults tofalse- corsAllowedHeaders
const static Str corsAllowedHeaders := "afBedSheet.cors.allowedHeaders"A CSV list of http heads the client is allowed to send. (Only required for preflight requests.) Defaults to
null.- corsAllowedMethods
const static Str corsAllowedMethods := "afBedSheet.cors.allowedMethods"A CSV list of http methods the client is allowed to make. (Only required for preflight requests.) Defaults to "GET, POST".
- corsAllowedOrigins
const static Str corsAllowedOrigins := "afBedSheet.cors.allowedOrigins"Fandoc ERRORS: Line 3 - Invalid *emphasis* A CSV glob list of all origins (domains) allowed for Cross Origin Resource Sharing. Defaults to "*" (all domains). Example, "*.alienfactory.co.uk, *.heroku.com" @see `CrossOriginResourceSharingFilter`
- corsExposeHeaders
const static Str corsExposeHeaders := "afBedSheet.cors.exposeHeaders"A CSV list of http headers the client application is allowed access to. Defaults to
null.- corsMaxAge
const static Str corsMaxAge := "afBedSheet.cors.maxAge"The max age to tell a client to cache the preflight request for. (Only required for preflight requests.) Defaults to
60min, set tonullto disable.- errPageDisabled
const static Str errPageDisabled := "afBedSheet.errPage.disabled"Set to
trueto disable the default detailed BedSheet ErrPage. You should do this in production. Defaults tofalse- gzipDisabled
const static Str gzipDisabled := "afBedSheet.gzip.disabled"If set to
truethen all gzipping is disabled, regardless of other configuration. Defaults tofalse.- 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. The default is
376.- httpRequestLogDir
const static Str httpRequestLogDir := "afBedSheet.httpRequestLog.dir"Directory where the request log files are written. Must be supplied.
@see RequestLogFilter
- httpRequestLogFields
const static Str httpRequestLogFields := "afBedSheet.httpRequestLog.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
- httpRequestLogFilenamePattern
const static Str httpRequestLogFilenamePattern := ...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
- httpStatusDefaultPage
const static Str httpStatusDefaultPage := "afBedSheet.httpStatus.defaultPage"The default page (instance of HttpStatusProcessor) to show when no specific page has been specified for a http status code. Defaults to
conf.autobuild(HttpStatusPageDefault#)- moustacheTemplateTimeout
const static Str moustacheTemplateTimeout := "afBedSheet.moustache.templateTimeout"The time before the file system is checked for template updates.
- 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.- 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-Lengthresponse header. Any content larger than the buffer is streamed direct to the client. Defaults to32Kb.