Fifth revision: share-link AI safety, sturdier generation, cleaner UI
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 1m0s
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 1m0s
- Malformed model JSON is sent back for repair, then retried; a failed job starts over once before it fails. Visitors can dismiss failed sets. - Generated sets get a short distinct name and description; flashcards are atomic and have no hints; standard study shows known/learning counts. - Share links: "In progress" list, finished sets join the normal lists with a "New" tag, plain progress steps, newest exam first. - Share-link AI expires after a week, can be limited to the US or Arizona (DB-IP Lite or Cloudflare headers) and is locked by abuse protection (migration 8). - The assistant never answers from general knowledge; MCP and web search tools load without a manual test. - Plain-text copy, no question count in exam mode, filler text removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d8df5edf30
commit
85d5c9186d
46 changed files with 1242 additions and 283 deletions
|
|
@ -59,6 +59,11 @@ direct access to the application to your proxy/network: forwarded headers are tr
|
|||
Use `COOKIE_SECURE=true` for the HTTPS public hostname. Plain HTTP cannot carry Secure cookies.
|
||||
Keep proxy upload limits at least as large as `MAX_UPLOAD_MB`, and allow long AI responses.
|
||||
Disable buffering for `/api/ai/chat` and `/api/ai/explain`; allow a long read timeout there.
|
||||
Share-link AI is limited to a region by visitor address, so the proxy must pass the real one
|
||||
(Settings → Sharing warns when every visitor looks local). Behind Cloudflare, the
|
||||
`CF-IPCountry` header (and `CF-Region-Code`, from the "Add visitor location headers" managed
|
||||
transform) is used directly; otherwise the server downloads the DB-IP Lite database into
|
||||
`/data/geoip` monthly and needs outbound HTTPS to download.db-ip.com or cdn.jsdelivr.net.
|
||||
Do not cache `/api/`, `/media/` or shared study data. `/api/health` returns 200 when SQLite works.
|
||||
|
||||
## Configuration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue