Compare commits
4 Commits
c98ea7a17b
...
loewy/fix-
| Author | SHA1 | Date | |
|---|---|---|---|
| cb68ef9e8a | |||
| a28d43f381 | |||
| b84b666845 | |||
| 25a2b8c695 |
23
flake.nix
23
flake.nix
@@ -54,15 +54,34 @@
|
|||||||
include ${mimeTypes};
|
include ${mimeTypes};
|
||||||
access_log /dev/stdout;
|
access_log /dev/stdout;
|
||||||
server {
|
server {
|
||||||
|
gzip on;
|
||||||
|
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
||||||
listen 80;
|
listen 80;
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
charset utf-8;
|
charset utf-8;
|
||||||
|
|
||||||
add_header X-Frame-Options "SAMEORIGIN";
|
add_header X-Frame-Options "SAMEORIGIN";
|
||||||
add_header X-Content-Type-Options "nosniff";
|
add_header X-Content-Type-Options "nosniff";
|
||||||
|
|
||||||
|
location /bundles/ {
|
||||||
|
gzip_static on;
|
||||||
|
root ${staticAssetsPath};
|
||||||
|
try_files $uri =404;
|
||||||
|
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~* \.(js|css|png|jpg|jpeg|gif|svg|ico|woff|woff2|ttf|eot)$ {
|
||||||
|
gzip_static on;
|
||||||
|
root ${staticAssetsPath};
|
||||||
|
try_files $uri =404;
|
||||||
|
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root ${staticAssetsPath};
|
gzip_static on;
|
||||||
try_files $uri $uri/ /index.php?$query_string;
|
root ${staticAssetsPath};
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
add_header Cache-Control "no-cache, must-revalidate";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user