Files
Profice_Home/nginx.conf
Ihor_Zhekov 2ef4b1ebac fix(nginx): serve .txt as UTF-8 and make AI-discovery files reachable
llms.txt and robots.txt were served without a charset, so browsers
decoded the valid UTF-8 as Windows-1252 and showed mojibake (â€", für).

- Add `charset utf-8;` (+ charset_types) so text responses carry
  `; charset=utf-8`.
- Add an explicit `location ~* \.txt$` that serves the file as plain
  text, returns 404 instead of falling back to index.html, and sets
  `Access-Control-Allow-Origin: *` so any AI crawler/tool can fetch
  llms.txt cross-origin.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 12:00:43 +02:00

1.3 KiB