Commandbox Server.json
Commandbox used with cfml web servers
Validate with Lintel
npx @lintel/lintel check
Configuration file for a CommandBox server
Properties
The name of the server
Controls whether browser opens by default when starting server
Override the URL to open when starting the server
The length of time in seconds to wait for the server to start
The port the server listens on to receive a stop command
Enable debug level logging for server
Enable trace level logging for server
Start the server in console mode instead of in the background
Control whether the server has an associated icon in the system tray
Path to the server's tray icon
An array of custom menu items to be added to the server's tray menu
[]
JVM Options
5 nested properties
The max heap size of the server
The starting heap size for the server
Ad-hoc JVM args for the server such as -X:name
Path to custom JRE. Default is the one that the CommandBox CLI is using
A Java installation ID. In its entirety, it has the form
Web Server Options
13 nested properties
The default host name of the server
Webroot directory
Enables file listing for directories with no welcome file
Enable web server access log
Enable GZip compression in HTTP responses
A comma-delimited list of files that you would like CommandBox to look for when a user hits a directory
Web aliases for the web server, similar to virtual directories
{}
The error pages that CommandBox servers return. You can have a setting for each status code including a default error page to be used if no other setting applies
{}
1 nested properties
Path to default error page
Configure the HTTP listener on the server
2 nested properties
Enable HTTP for this serer
HTTP port to use
Configure the HTTPS listener on the server
5 nested properties
Enable HTTPS for this server
HTTPS port to use
Path to SSL cert file
Path to SSL key file
Password for SSL key file
Configure the AJP listener on the server
2 nested properties
Enable AJP for this server
AJP port to use
Configure URL Rewrites
5 nested properties
Enable URL Rewrites on this server
Enable Rewrite log file
Path to xml config file or .htaccess
URL path to visit Tuckey status page like '/tuckey-status'
Number of seconds to check rewrite config file for changes
2 nested properties
Enable basic auth for this server
Users who can authenticate to basic auth
{}
Application Server Options
11 nested properties
The folder path where the servlet out, rewrite, and access log are written to
A comma-delimited list of directories from which CommandBox will load JARs
Directory for Lucee/Railo web context
Directory for Lucee/Railo server context
Path to web.xml file
Path to a local WAR archive or exploded WAR folder. Mutually exclusive with cfengine.
An Endpoint ID that resolves to a CF engine such as 'adobe' or 'lucee'. Include version as 'adobe@2016'
Comma delimited list of paths to map to the CF engine's REST servlet such as '/rest/,/api/'
Path to folder where the server WAR will be expanded
Enable secure session cookies
Enable HTTP-only session cookies
These settings apply to the underlying Runwar library that starts servers
1 nested properties
Ad-hoc options for the underlying Runwar library
Definitions
An object that represents a single tray menu item
Text of menu item
Action to perform when user clicks this menu item. 'openfilesystem', 'openbrowser', or 'stopserver'
Url to open for 'openbrowser' action
Turn menu item grey and nothing happens when clicking on it
Path to PNG image to display on menu item next to the label
Keyboard shortcut to choose this menu item
Filesystem path to open for 'openfilesystem' action