mirror of
https://github.com/deunix-educ/PyQuest.git
synced 2026-11-25 08:19:44 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user