Updating nginx config

This commit is contained in:
Tara Wilson 2025-02-20 20:54:54 -05:00
parent c4e0cfc5ce
commit 6df2b3d8de

View File

@ -1,13 +1,21 @@
events{}
http {
include /etc/nginx/mime.types;
server {
listen 80;
server_name localhost;
listen 0.0.0.0:80;
listen [::]:80;
default_type application/octet-stream;
gzip on;
gzip_comp_level 6;
gzip_vary on;
gzip_min_length 1000;
gzip_proxied any;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_buffers 16 8k;
gunzip on;
client_max_body_size 256M;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
try_files $uri $uri/ /index.html =404;
}
}