Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🚅 chore: Added an Example of Nginx gzip Settings (#3173)

Yuichi Onedac99cf1b4b1ff
diff --git a/client/nginx.conf b/client/nginx.conf
index 49a2dd16fb..c91c47a23f 100644
--- a/client/nginx.conf
+++ b/client/nginx.conf
@@ -10,6 +10,15 @@ server {
######################################## Non-SSL ########################################
server_name localhost;
+ # https://docs.nginx.com/nginx/admin-guide/web-server/compression/
+ # gzip on;
+ # gzip_vary on;
+ # gzip_proxied any;
+ # gzip_comp_level 6;
+ # gzip_buffers 16 8k;
+ # gzip_http_version 1.1;
+ # gzip_types text/css application/javascript application/json application/octet-stream;
+
# Increase the client_max_body_size to allow larger file uploads
# The default limits for image uploads as of 11/22/23 is 20MB/file, and 25MB/request
client_max_body_size 25M;
@@ -33,6 +42,15 @@ server {
# listen 443 ssl http2;
# listen [::]:443 ssl http2;
+# https://docs.nginx.com/nginx/admin-guide/web-server/compression/
+# gzip on;
+# gzip_vary on;
+# gzip_proxied any;
+# gzip_comp_level 6;
+# gzip_buffers 16 8k;
+# gzip_http_version 1.1;
+# gzip_types text/css application/javascript application/json application/octet-stream;
+
# ssl_certificate /etc/nginx/ssl/nginx.crt;
# ssl_certificate_key /etc/nginx/ssl/nginx.key;
# ssl_session_timeout 1d;