|
@@ -10,6 +10,15 @@ server {
|
|
|
try_files $uri $uri/ /index.php?$args;
|
|
try_files $uri $uri/ /index.php?$args;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ location ~ \.css {
|
|
|
|
|
+ add_header Content-Type text/css;
|
|
|
|
|
+ }
|
|
|
|
|
+ location ~* \.(js|css|png|jpg|jpeg|gif|ico|woff|woff2|ttf|svg|otf|eot)$ {
|
|
|
|
|
+ try_files $uri =404;
|
|
|
|
|
+ expires 30d;
|
|
|
|
|
+ add_header Cache-Control "public, no-transform";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
location ~ \.php$ {
|
|
location ~ \.php$ {
|
|
|
include fastcgi_params;
|
|
include fastcgi_params;
|
|
|
fastcgi_pass unix:/var/run/php-fpm.sock;
|
|
fastcgi_pass unix:/var/run/php-fpm.sock;
|