Spaces:
Sleeping
Sleeping
Commit History
-
fix(deploy): trust x-forwarded-for for per-IP rate limiting
HF Spaces sits behind one proxy layer, so adapter-node's default client address is the proxy's, which collapsed the per-IP login limiter into a single global bucket. Bake ADDRESS_HEADER=x-forwarded-for and XFF_DEPTH=1 into the runtime image, and raise the limiter to 30/min so users behind a shared NAT are not locked out.d0c44b2 -
fix(app): 503 on storage failures, validated currency, lock release on shutdown, per-IP login limit, unit-only npm test
Storage failures now surface as a 503 with a retry message instead of a bare 500: `guarded()` wraps every form action, passing redirects/HttpErrors/ActionFailures through and mapping anything else (including ReadOnlyError) to a 503 rendered by the new +error.svelte. - config: CURRENCY must be a 3-letter uppercase ISO 4217 code; reuse the validated session secret and compaction interval instead of recomputing them - app: release the writer lock on sveltekit:shutdown, with SIGTERM/SIGINT fallback - login: per-IP limiter (20/min) ahead of the per-username one; scrypt wait queue capped at 64 so a login flood is shed as a 503 rather than parked - npm test now runs unit tests only; integration tests move to vitest.integration.config.ts so the default run never touches the real bucket - nosniff/Referrer-Policy on every response, spelling fixes, drop unused splitParticipants, .git in .dockerignore, README env notese830ad4 -
fix(app): stop guard on boot failure, validate compaction interval, harden hooks
6d928e9 -
feat(app): wire config, singleton app bootstrap, and auth hooks
4bb4f90 -
chore: scaffold SvelteKit project with Tailwind, Vitest, adapter-node
52ec2ea