Skip to main content

Configuration

When running the server with no options or flags provided, a set of default configurations will be used. You can always change this behavior by either creating your own config with the Configuration TOML file or by providing CLI arguments described in the usage section.

NameDescriptionDefault
HostAddress to bind the server127.0.0.1
PortPort to bind the server7878
Root DirectoryThe directory to serve files fromCWD
File Explorer UIA File Explorer UI for the directory configured as the Root DirectoryEnabled
Configuration FileSpecifies a configuration file. ExampleDisabled
HTTPS (TLS)HTTPS Secure connection configuration. Refer to TLS (HTTPS) referenceDisabled
CORSCross-Origin-Resource-Sharing headers support. Refer to CORS referenceDisabled
CompressionGZip compression for HTTP Response Bodies. Refer to Compression referenceDisabled
QuietDon't print server details when running. This doesn't include any logging capabilities.Disabled
IndexRoute directories to index.html if presentDisabled
SPARoute non-existent files to /index.htmlDisabled
Basic AuthenticationAuthorize requests using Basic Authentication. Refer to Basic AuthenticationDisabled
LoggerPrints HTTP request and response details to stdoutDisabled