server { listen 8080; server_name repogpt.telki.fr; # Racine unique pour toutes les locations root /mnt/chatgpt; # Types explicites (JSON, NDJSON, TSV, TXT, etc.) types { application/json json; application/x-ndjson ndjson; text/plain txt log tsv csv md yml yaml ini conf ps1 psd1 psm1 sh sha256 bk cmd; } default_type application/octet-stream; # En-têtes par défaut add_header Cache-Control "no-store" always; add_header Access-Control-Allow-Origin * always; charset utf-8; # Listing par défaut location / { autoindex on; autoindex_localtime on; autoindex_exact_size off; index off; limit_except GET HEAD { deny all; } } # Alias KB (accès direct au _registry) location ^~ /kb/ { alias /mnt/chatgpt/ChatGPT-Gouvernance-Projets/_registry/; autoindex on; autoindex_localtime on; autoindex_exact_size off; index off; limit_except GET HEAD { deny all; } } # Sonde de vie location = /healthz { default_type text/plain; return 200 "ok\n"; } }