Configuration
Configuration
Introduction
The configuration is done in the serve
method. The configuration is an object with the following properties:
port
(number): The port to listen on. Default is8080
.debug
(boolean): Iftrue
, the server will show debug information on error Pages. Default isfalse
.logging
(table): The logging configuration.logging.enabled
(boolean): Iftrue
, the server will log requests. Default istrue
.logging.logToFile
(boolean): Iftrue
, the server will log requests to a file. Default isfalse
.logging.logFilePath
(string): The path to the log file. Default is nil.
Example
aurora.serve({
port = 8080,
debug = true,
logging = {
enabled = true,
logToFile = false,
logFilePath = "request.log" -- Paths are relative to the working directory
}
})