Spaces:
Sleeping
Sleeping
Commit History
-
Add HF Spaces deployment scaffold + trial password gate
Dockerfile (Python 3.12 + uv, listens on 7860, persists to /data) and .dockerignore let us push the FastAPI engine to a Hugging Face Docker Space. README.md gets the YAML frontmatter HF needs to detect the Space type. Two env-driven gates so a public Space stays trial-only: - WARGAME_ALLOWED_ORIGINS CORS allow-list (defaults to *) - WARGAME_TRIAL_PASSWORD shared password; clients send X-Trial-Password. /healthz and CORS preflights are exempt so HF healthchecks and browser preflights still work. Frontend caches the password in localStorage and re-prompts on a 401. Both gates default to permissive so local dev DX is unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>17a40e4