Add mime.types to nginx.conf for root location

This commit is contained in:
Max Schmidt 2023-10-24 10:16:05 +02:00
parent 7d2e4f6598
commit 3e5c6d707b

View File

@ -10,12 +10,13 @@ http {
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
include /etc/nginx/mime.types;
server {
listen 80;
location / {
root /usr/share/nginx/html;
include /etc/nginx/mime.types;
try_files $uri $uri/ =404;
}