server { listen 8080 default_server; server_name _; # Racine servie par défaut (SoT monté en /mnt/chatgpt dans le conteneur) root /mnt/chatgpt; # Types utiles 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; # Fingerprint (debug) add_header X-RepoGPT "repo_gpt.conf ACTIVE" always; location = /fingerprint { default_type text/plain; return 200 "fingerprint=repo_gpt.conf ACTIVE\nroot=$document_root\n"; } # 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"; } }