Configuration
Windlass is configured through WINDLASS_* environment variables, plus Docker’s own
DOCKER_HOST, so it behaves the same under systemd and under Docker. Everything else, the parts an operator changes
day to day, lives in Settings in the panel.
Under systemd, put overrides in a drop-in rather than editing the unit:
sudo systemctl edit windlass[Service]Environment=WINDLASS_LOG_LEVEL=debugVariables
Section titled “Variables”| Variable | What it does |
|---|---|
WINDLASS_ADDR |
Default :8080. Listen address for the HTTP server. |
WINDLASS_DATA |
Default /var/lib/windlass. Platform state: the SQLite database and keys, projects, plugins. |
WINDLASS_PROJECTS |
Default <data>/projects. Where project directories live. Point it at an existing stacks directory to adopt what is already there. Local backups go in a backups directory beside it. |
WINDLASS_LOG_LEVEL |
Default info. One of debug, info, warn, error. An unrecognised value is a startup error rather than a silent fallback. |
WINDLASS_CADDY_ADMIN |
Default http://127.0.0.1:2019. Caddy admin API. Set this when Caddy runs in a container: http://caddy:2019. |
WINDLASS_PANEL_UPSTREAM |
Default 127.0.0.1:8080. The address Caddy dials to reach the panel, used by the Settings-managed panel hostname. Change it when Caddy is not on the host network. |
WINDLASS_TRUSTED_PROXIES |
Default 127.0.0.0/8,::1/128. Sources whose X-Forwarded-For, X-Real-IP and X-Forwarded-Proto headers Windlass believes when it records a client’s address and decides whether the request is HTTPS (HSTS, Secure cookies). The default covers the recommended local Caddy. Widen it only for a proxy you control. |
WINDLASS_UPDATE_REPO |
Default Sulaiman-Dauda/windlass. Repository checked for releases. |
WINDLASS_UPDATE_TOKEN |
Unset by default. Authenticates release checks and downloads. Required only for a private update repository, whose releases the panel shows but, from v0.64, refuses to install: their build provenance is signed by a Sigstore instance it does not trust. Windlass removes it from its environment once read, so Compose, Git and plugins never see it. |
WINDLASS_NO_SELF_UPDATE |
Unset by default. Any non-empty value disables self-update. Useful when a package manager or image tag owns the version. The panel still shows when a new version exists, without the Update now button. |
DOCKER_HOST |
Defaults to Docker’s own socket. Where Windlass and the docker compose it runs reach Docker. The installer sets tcp://127.0.0.1:2375, the restricted socket proxy, and the container install points it at the proxy service. |
WINDLASS_TRUSTED_PROXIES decides whether client-supplied X-Forwarded-For and
X-Forwarded-Proto are believed. Trusting an address you do not control lets a client
claim any source IP (which matters wherever an IP is used for a decision or an audit
entry) or claim HTTPS it does not have (which would earn it HSTS and Secure cookies over
plain HTTP). The default trusts loopback only, which is right for Caddy on the same host.
When a private address outside the list sends either header, Windlass ignores them and logs a warning naming the address, once for each address. That is usually a reverse proxy the setting does not cover yet: see Upgrading.
Settings in the panel
Section titled “Settings in the panel”These are not environment variables, and they are stored in SQLite. Credentials among
them are encrypted with secret.key.
- Panel domain, which creates the HTTPS route for the panel itself (Settings, General)
- Users, two-factor and GitHub or Google sign-in (Settings, Users and sign-in)
- Personal API tokens, stored as hashes (Settings, API tokens)
- The GitHub App (Settings, Users and sign-in) and Git connections (Settings, Git)
- Container registry credentials (Settings, Registries)
- The S3 backup destination and its keys (Settings, Backups)
- Docker storage clean-up after each successful deployment (Settings, System); see Deployments
Files on disk
Section titled “Files on disk”/var/lib/windlass/├── data/│ ├── windlass.db # platform state│ ├── secret.key # encryption key for stored credentials│ ├── session.key # signs session cookies│ ├── windlass.lock # stops a second Windlass using the same data│ └── update/ # a downloaded update, waiting for the next restart├── projects/ # one directory per project├── backups/ # local backup archives, beside projects/└── plugins/ # installed pluginssecret.key decrypts stored credentials. A platform backup without it leaves those
credentials unreadable, and a copy of it in the wrong place hands them over. Back the data
directory up as a whole, and treat the archive as a secret.