]> jfr.im git - uguu.git/commitdiff
Update X.Y.conf
authorEric Johansson (neku) <redacted>
Sun, 6 Jun 2021 17:45:19 +0000 (19:45 +0200)
committerGitHub <redacted>
Sun, 6 Jun 2021 17:45:19 +0000 (19:45 +0200)
templates/nginx_confs/X.Y.conf

index 1bae1782f7e688b539bf9b7125a05b031e7f617d..fdb62f6e609484698f4add0f9d61ae8b10cfba8d 100644 (file)
@@ -16,23 +16,14 @@ access_log      off;
 index index.html index.php;
 
 location ~* \.(?:css|js|jpg|jpeg|gif|png|ico|xml|eot|woff|woff2|ttf|svg|otf)$ {
+add_header        Cache-Control "no-cache, public, must-revalidate, proxy-revalidate";
+}
 
-    add_header        Cache-Control "no-cache, public, must-revalidate, proxy-revalidate";
-
-    # allow CORS requests
-    add_header        Access-Control-Allow-Origin *;
-    types     {font/opentype otf;}
-    types     {application/vnd.ms-fontobject eot;}
-    types     {font/truetype ttf;}
-    types     {application/font-woff woff;}
-    types     {font/x-woff woff2;}
-  }
-
-    gzip on;
-    gzip_min_length 1000;
-    gzip_comp_level 6;
-    gzip_proxied any;
-    gzip_types text/css text/js text/javascript application/javascript application/x-javascript;
+ gzip on;
+ gzip_min_length 1000;
+ gzip_comp_level 6;
+ gzip_proxied any;
+ gzip_types text/css text/js text/javascript application/javascript application/x-javascript;
 
 location ~* \.php$ {
 fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;