Add optional sync: SyncClient with optimistic concurrency, settings UI, Django DELETE and 409, dev proxy, e2e with real backend

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
denis
2026-10-16 17:24:58 +02:00
parent aa2fd84352
commit 4689d25700
20 changed files with 949 additions and 16 deletions
+5
View File
@@ -3,6 +3,9 @@
# (SharedArrayBuffer). HTTPS obligatoire (service worker + isolation cross-origin).
# Voir docs/design/01-pyodide-choice.md.
# Limite de débit de l'API de synchronisation (hors bloc server, contexte http) : 30 requêtes/min par IP.
limit_req_zone $binary_remote_addr zone=pyquest_sync:10m rate=30r/m;
server {
listen 443 ssl http2;
server_name pyquest.example.org;
@@ -47,6 +50,8 @@ server {
# API de synchronisation Django (optionnelle), sur le même domaine.
location /api/ {
limit_req zone=pyquest_sync burst=20 nodelay;
client_max_body_size 300k;
proxy_pass http://127.0.0.1:8001;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;