Skip to content

Configuration

Every block of nvs.toml, and each of its keys.

Blocks

  • [[app]]: An [[app]] block contains the settings for one application: its limits, its capabilities, its mode and its origin.
  • [cache]: Sets the network store that Core\Cache::shared uses, where every server process and every machine sees the same values.
  • [capabilities]: [capabilities] lists what a program may do outside its own memory.
  • [debug]: Keeps the temporary directories of a program after it ends. Without this setting, they are deleted.
  • [deferred]: How many requests one core keeps open at a time for work that runs after the response is sent.
  • [errors]: What happens when a program uses deprecated code while it runs. Code is deprecated when it carries the attribute #[Core\Deprecated]. You set it in nvs.toml as the key deprecated in the block [errors].
  • [ext]: The settings of a loaded extension. An extension is code that runs in a sandbox beside your program, loaded by an [[extension]] entry in nvs.toml. An extension may declare settings, and you set them in nvs.toml in a block named after the extension, such as [ext.ledger] for Shop\Ledger.
  • [extension]: A native extension is a compiled library the owner of a machine adds to Novis, and this is where they say which ones there are and where each one lives.
  • [http]: [http] configures every response the server sends. It sets the security headers, the response to a cross-origin call, the defaults of every cookie, and how much an error page shows. A cross-origin call is a call from a web page on another site. CORS (Cross-Origin Resource Sharing) is the set of headers that allows such a call.
  • [image]: The most pixels Novis\Image decodes in one image. You set it in nvs.toml as the key max_pixels in the block [image].
  • [[include]]: [[include]] reads other configuration files into the file that contains it.
  • [io]: The directory in which Novis creates every temporary directory that a program requests.
  • [limits]: [limits] sets the limits that each request starts with. [limits.hard] sets the highest value that a request may raise each limit to, with Core\Config::set.
  • [log]: What a program's own records look like, and who is told when one of its requests fails.
  • [metrics]: Where a deployment's numbers go, and how many of them one core keeps.
  • [mode]: [mode] sets whether an application starts in production mode or in development mode.
  • [opcache]: Controls how a running server notices that a source file changed.
  • [queue]: The database where this deployment stores its background jobs.
  • [regex]: Decides whether a regular expression may use the backtracking engine. You set it in nvs.toml as the key backtracking in the block [regex].
  • [schedule]: Runs a script file at fixed times, or when something happens to the server.
  • [server]: The [server] block of nvs.toml sets where nvs serve listens, how many requests it runs and how long it waits.
  • [session]: Where a session's record lives, how long an untouched one survives, and what the cookie carrying its identifier is called.
  • [tls]: Settings for every outbound TLS (encrypted) connection: HTTP calls, mail, LDAP, databases and the shared cache (Core\Cache::shared()).
  • [trace]: Whether this deployment records what a request did, and how much of it.

Topics