nginx gzip

main
Joost Wooning 2021-10-05 11:58:16 +02:00
parent bb17a1a7d3
commit d6dff07d28
1 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,11 @@ server {
listen [::]:80;
server_name localhost;
gzip on;
gzip_types text/html text/plain text/css text/xml text/javascript application/javascript application/x-javascript application/json;
gzip_min_length 1024;
gzip_vary on;
root /usr/share/nginx/html;
location / {
try_files $uri $uri/ /index.html;