fix: ensure apidoc uses utf-8 text

This commit is contained in:
ittoview
2026-05-10 12:19:51 +01:00
parent 71b8b34df0
commit 22d9abe0f2
2 changed files with 4 additions and 2 deletions

View File

@@ -13,7 +13,8 @@ server {
# Markdown 接口说明,直接返回文本内容
location = /apidoc {
default_type text/markdown;
types { }
default_type text/plain;
charset utf-8;
try_files /apidoc =404;
add_header Cache-Control "no-store";