Configuration¶
SliDesk uses a slidesk.toml file for presentation-level configuration. Values are accessible in plugins via window.slidesk.env.KEY, in slide content via ++KEY++, and by SliDesk itself via the [slidesk] section.
[slidesk]
HTTPS=true
KEY="path/to/key.pem"
CERT="path/to/cert.pem"
PASSPHRASE="optional-passphrase"
WIDTH=1920
TITLE="My Presentation"
DOMAIN="slides.example.com"
PORT=1337
TRANSITION=300
WATCH=true
TELNET_PORT=2323
COMMON_DIR="path/to/common"
HTTPS¶
Enable HTTPS. Requires KEY and CERT.
KEY¶
Path to the TLS certificate key file.
CERT¶
Path to the TLS certificate file.
PASSPHRASE¶
Passphrase for the TLS key (if required).
WIDTH¶
Used for responsive image resizing. Images are scaled relative to this original presentation width.
TITLE¶
Content of the HTML <title> tag.
DOMAIN¶
Override the domain used in server URLs. Default: localhost.
PORT¶
HTTP server port. Default: 1337.
TRANSITION¶
Slide transition animation duration in milliseconds. Default: 300. Set to 0 to disable.
WATCH¶
Enable or disable the file watcher. When enabled (default), editing a file triggers an automatic browser refresh.
TELNET_PORT¶
Port for the telnet server. Default: 2323.
COMMON_DIR¶
Path to a shared directory for reusing themes, plugins, templates, components, and assets across multiple presentations.
Plugins placed in COMMON_DIR/plugins/ are automatically loaded alongside local plugins.
Files in COMMON_DIR can be referenced with the -=[COMMON]=- prefix:
Custom keys¶
Any key under [slidesk] is accessible as an environment variable:
In slide content: ++MY_CUSTOM_KEY++ renders as hello-world.
In plugins: window.slidesk.env.MY_CUSTOM_KEY returns "hello-world".