The script that ships node_modules and waits for /api/health was installed
on the server on 2026-11-21, then reinstalled at 632cc06 after its first
run misread HOST and PORT and aborted its rollback. That delivery succeeded,
and the doc now says to install a changed script from origin/main while CI
validates, since the deploy job calls the copy already installed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Share uploads now reserve their slot, bytes and per-IP count before the
disk check, so simultaneous uploads can no longer exceed the limits.
Writes to a share's metadata run one after another, and a revocation can
no longer be undone by a pending read count.
The TCG page ignores a state reload that started before or during a
mutation, the last mutation wins, and returning to the page triggers a
single reload. The card cache confirms writes only once the IndexedDB
transaction completes and shows only the current player's copy. The
administration panel loads on demand, which shrinks the TCG chunk from
311.6 to 191.8 kB.
A new /api/health route answers 503 when the cards or shares API failed
to start. The deploy script ships the commit's production dependencies
with the build, waits up to 30 s for a healthy server instead of trusting
systemctl is-active, and restores node_modules on rollback. Both Forgejo
workflows check the route on the public site. The updated script applies
once reinstalled on the server.
Unused helpers, the ignored join role and duplicate button selectors are
removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Players turn on alerts one by one in their account: someone opens an expedition group, or one of their expeditions returns; both stay off until chosen.
- Opening a group queues a direct message for each other subscribed player; every 30 seconds the server queues returned expeditions once and sends pending messages to palico-bot's direct message route.
- Permanent refusals (unknown account, closed direct messages) or five failures stop retries; only real Discord accounts receive alerts, and sent rows are purged after 30 days.
- CARDS_DISCORD_ALERTS_URL and CARDS_DISCORD_ALERTS_KEY enable the feature; Administration › Guilde can turn every alert off, and the privacy notice explains what is sent.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sharing a toolbox meant exporting a JSON file and passing it around by
hand. A toolbox can now be sent from the site while staying local first:
the browser compresses and encrypts the v2 export with AES-GCM, and the
key lives only in the link fragment, so the server keeps for at most
24 hours a copy it cannot read.
- Add the /api/shares service: upload, metadata, download and revoke,
with files in SHARES_DIR, a purge every 10 minutes, and single-use
links (the default) deleted only once fully downloaded.
- Cap the server load: 50 MiB per share, total storage, free disk
space, daily volume, concurrent and stalled uploads, reads per link,
plus a wide per-connection cap kept in memory without storing IPs.
- Limit each browser to 2 shares and 100 MiB per day and 2 active
links, and show the existing link of a toolbox already shared.
- Add the send dialog (card and game drawer) and the /receive page,
which previews or directly imports through the existing import path.
- Move shared HTTP helpers to services/http.js for both APIs.
- Document the format, delivery, server layout and privacy wording.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Vite Preview sends none of the headers of server.mjs, so the production E2E
passed while the CSP blocked the calculator formulas in production. The build
is now served by server.mjs with Sokko TCG disabled, and a new spec saves and
updates a calculator result there, failing on any CSP violation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Imported toolboxes could run scripts on the site origin through image data
URLs, so only bitmap images are now accepted at import, display and opening.
The Cards game and its fake admin login no longer turn on when NODE_ENV is
missing, and the Node server now sends a CSP and the other security headers.
The deployment script no longer runs files owned by the service account as
root, the services cannot gain privileges through sudo, and the deployment
key stays in a single workflow step with actions pinned by commit. The script
and systemd units must still be reinstalled on the server after delivery.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The site port answered directly on the VM's public address, bypassing the proxy
and letting clients forge X-Forwarded-For. HOST now limits where it listens. The
Cards database and backups move to /data with owner-only folders, and SERVER.md
describes the Proxmox VMs, ports and open points.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Publish CARDS_PRIVACY_CONTROLLER in the privacy notice, required in production
like the contact. A daily maintenance anonymises non-admin accounts after 24
months without login and purges expired sessions and old idempotency keys.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Warn against copying PORT into cards.env, state which missing values disable
the game, drop wording that only applied to the feature branch, and take the
non-breaking audit fix for development tools.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Align the delivery guide with the code: hourly recharge, the dedicated database
folder, the privacy contact, the proxy's X-Forwarded-For duty, reinstalling the
unit, the backup timer and the post-activation admin checklist.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add the server-backed card game: Discord login, recharging pack openings,
album, trades, gifts, stardust shop, campaign codes and its administration,
stored in SQLite and disabled in production until configured.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>