Configuration
All configuration of StencilBox is via a configuration file called config.yaml. When running StencilBox via Docker, this file is located in the /config directory.
The configuration file can be created and edited using any text editor. The configuration file is in YAML format, which is a human-readable data serialization standard.
The most basic config.yaml file cam be as simple as this:
logLevel: info
Option |
Description |
Default |
Live Reloadable |
Documentation |
|
The version of the configuration file. |
1 |
No |
--- |
|
The log level to use. |
info |
Yes |
One of |
|
Whether to show the footer in the web UI. |
true |
No |
--- |
Environment variables
Variable |
Description |
Default |
|
Directory searched for custom templates, before the built-in templates. See Templates. |
|
|
Directory where build history is saved ( |
The parent of the output directory, eg |
|
Directory where built sites are written and served from. |
|
Stopping StencilBox
On SIGTERM or SIGINT, StencilBox stops accepting new builds and waits up to 25 seconds for builds in progress to finish before exiting. Docker only waits 10 seconds before killing a container by default; to give builds the full time, set stop_grace_period: 30s in Docker Compose, or pass --stop-timeout 30 to docker run.