Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
feat(frontend): enable gzip compression for static resources in nginx configuration
wizardchen9dcb61fb451b
diff --git a/frontend/nginx.conf b/frontend/nginx.confindex 10cd79a6b..994c2a5fd 100644--- a/frontend/nginx.conf+++ b/frontend/nginx.conf@@ -3,7 +3,17 @@ server {server_name localhost;# Default 50M, configured via MAX_FILE_SIZE_MB env varclient_max_body_size ${MAX_FILE_SIZE};-++ # 启用 gzip 压缩静态资源 (前端 index.js 单文件 ~1MB, 不压实测 20s+,+ # 压缩后约 200-300KB, 大陆同地域低带宽机器加载从 25s 降到 3-5s)+ gzip on;+ gzip_vary on;+ gzip_min_length 1024;+ gzip_comp_level 6;+ gzip_proxied any;+ gzip_types text/plain text/css text/javascript application/javascript application/json+ application/xml application/rss+xml image/svg+xml font/ttf font/otf;+# 安全头配置add_header X-Frame-Options "SAMEORIGIN" always;add_header X-Content-Type-Options "nosniff" always;