Repository navigation
v1.11.0
v1.11.0 - Security Fixes and Reverse Proxy Support
This release is focused on security fixes and hardening. All instances should update ASAP. Support for running OpenMTG behind a reverse proxy has also been added, along with clearer limits on imports and photo uploads.
Quick Start
$ git clone https://github.com/DredBaron/OpenMTG
$ cd OpenMTG
$ mv .env.example .env
$ openssl rand -hex 32 # paste the output as JWT_SECRET in .env
$ docker compose up -dSee the README or Installation Wiki for full setup instructions.
Please read these notes before updating.
- Everyone will be signed out once and needs to sign in again.
- OpenMTG now refuses to start if
JWT_SECRETis empty, a placeholder such aschangeme(the old.env.exampledefault), or shorter than 32 characters. Set it to the output ofopenssl rand -hex 32and restart. - If you run OpenMTG behind a reverse proxy, set
TRUSTED_PROXIESto the proxy's address. If you use your own copy ofdocker-compose.yml, also addTRUSTED_PROXIES: ${TRUSTED_PROXIES:-}to the app'senvironment:block. - Home Assistant webhooks that point at
localhostor another loopback address will stop working. Use the Home Assistant server's LAN address instead.
Changes
- Server-side feature toggles - Disabled features (Showroom, Trades, Home Assistant integration) now return
403from their API endpoints. Webhook credentials can't be managed while the integration is off. - Home Assistant API - The Home Assistant stats pull endpoint returns
403instead of503while the integration is disabled. JWT_SECRETstartup check - Empty, example, and placeholder values, or values shorter than 32 characters, are refused at startup. The error message shows how to generate one.- Session revocation - Changing a user's password signs that user out everywhere by invalidating all keys for that user.
- Reverse proxy support - New
TRUSTED_PROXIESsetting for instances behind Caddy, Traefik, Nginx Proxy Manager, a Cloudflare Tunnel, or similar. Empty by default. See the Configuration Reference for setup and how to find the address. - Login lockouts - Lockouts after repeated failed logins now apply per client address.
- Trades - Trades show a "Processing" state while cards are transferred, and a trade interrupted during a transfer is settled automatically on the next start.
- Webhooks - Target URLs must point to a LAN or public address as loopback and link-local addresses are no longer accepted. Test pushes are rate-limited.
- Imports - Collection and deck imports are limited to 1000 lines each and rate-limited per user. The import dialogs show this new limit.
- Card photos - Uploads accept JPEG, PNG, or WebP up to 10 MB, and the upload dialog shows the accepted types and size. Photo files are now removed from disk when their photo, card entry, or owner is deleted.
- Hardened input validation across the API.
.env.examplenow leavesJWT_SECRETempty with a note on generating one, and includesTRUSTED_PROXIES.
Images
- ghcr.io/dredbaron/openmtg:latest
- ghcr.io/dredbaron/openmtg-arm64:latest
- ghcr.io/dredbaron/openmtg:v1.11.0
- ghcr.io/dredbaron/openmtg-arm64:v1.11.0