mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 08:12:00 +02:00
🚅 chore: Added an Example of Nginx gzip Settings (#3173)
This commit is contained in:
parent
b5081bfe86
commit
c99cf1b4b1
1 changed files with 18 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue