Skip to main content

Configuration

The driver reads config.json from the application root:
  • Bundled executable: next to plato-printer.exe.
  • Development: current working directory.
If config.json is missing, the driver creates one with sanitized defaults.

Example Config

Server

The Express app enables permissive CORS and Access-Control-Allow-Private-Network: true so browser POS clients can call the driver from local/private networks.

Features

HTTPS only starts when both features.httpsEnabled and caddy.enabled are true.

Caddy

On Windows 7 or older, the driver rejects HTTPS configs that use a Caddy version other than 2.6.4.

Redis

Embedded Redis startup aborts the whole driver if Redis cannot start or if the actual Redis version does not match redis.version.

Queue

Sanitization

The config reader sanitizes values:
  • Ports and numeric settings must be positive integers.
  • Booleans can be booleans or strings "true" / "false".
  • redis.mode must be embedded or external.
  • Empty strings fall back to defaults for domain/version/host-like fields.