Playmat 0.3.0: my self-hosted MTG server now works behind your own reverse proxy, plus OIDC and SSO
retained text
Hey everyone! A few weeks ago I shared [Playmat](https://github.com/arcanite24/playmat), my fork of XMage (the open-source MTG rules engine) with a browser client you host yourself. I honestly didn't expect that many of you to spin it up. Some of you got it running for your playgroups, your kids, and friends you haven't played with since high school, and that made my month. Thank you!
The comments gave me a lot to work on, so I've been busy. Here's what's new in 0.3.0.
**Bring your own reverse proxy**
This was by far the most common request: plenty of you already run Traefik or nginx and didn't want a second Caddy fighting it for ports 80 and 443. Now your proxy keeps the ports and the certificates, and Playmat sits quietly behind it on a shared Docker network:
# ops/web/.env
DOMAIN=play.example.com
TLS_MODE=external
PROXY_NETWORK=proxy
docker compose -f ops/web/docker-compose.yml -f ops/web/docker-compose.proxy.yml --env-file ops/web/.env up -d
The Traefik labels are already in the override file. The docs have configs for nginx, Nginx Proxy Manager, SWAG and Caddy. Playmat's own web container is still there, because it handles the game's WebSocket connection and the card pictures, but it only serves plain HTTP inside the network now. Big thanks to u/argash for the Traefik write-up in the last thread. It helped a lot.
**Single sign-on**
* OIDC: Pocket ID, Authentik, Keycloak or anything else that speaks OpenID Connect. You can give a group in your provider the admin console, or turn passwords off entirely.
* Header SSO through Authelia, Authentik's outpost, oauth2-proxy or `tailscale serve`. Caddy drops the header unless the request comes from your proxy, so nobody can fake it.
**Smaller things you mentioned**
* Card pictures can come from your own Scryfall mirror. The cache tops out at 20 GB by default and drops the least recently used pictures first.
* If the owner account hasn't been registered yet, the sign-in screen tells you, so no more guessing with the admin password.
* There's now an FAQ on when new sets show up (once upstream XMage adds them), and a note on where the official images and installers live. Someone spotted re-uploads of the repo with their own download links, so only grab them from [`ghcr.io/arcanite24/playmat-*`](http://ghcr.io/arcanite24/playmat-*) and this repo's releases.
**Other things I've been tinkering with**
* A new game engine written in Rust. It's opt-in from Settings and works for AI games and games between people. A little chip on the board shows which engine you're on, and anything it doesn't cover yet stays on the classic engine.
* It works on phones now, and there's a match size setting for laptop screens.
* Better deck management: tags, covers and shared decks. Arena imports come in whole, and Universes Beyond cards are found by their in-universe names.
* A pile of rules and AI fixes from player reports, smoother animations, and the "You win" screen no longer pops up before your last attack lands.
Same stack as before: one compose file, prebuilt images for x86 and ARM.
* Release notes: [https://github.com/arcanite24/playmat/releases/tag/v0.3.0](https://github.com/arcanite24/playmat/releases/tag/v0.3.0)
* Server guide: [https://arcanite24.github.io/playmat/docs/server.html](https://arcanite24.github.io/playmat/docs/server.html)
* Single sign-on: [https://arcanite24.github.io/playmat/docs/sso.html](https://arcanite24.github.io/playmat/docs/sso.html)
* Repo (MIT): [https://github.com/arcanite24/playmat](https://github.com/arcanite24/playmat)
It's a free fan project, not affiliated with Wizards. Thanks again for all the feedback last time, and keep it coming.document fetched 2026-11-20 00:28 · canonical https://reddit.com/r/selfhosted/comments/1y0hwz4/playmat_030_my_selfhosted_mtg_server_now_works