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};
|
||||
access_log /dev/stdout;
|
||||
server {
|
||||
gzip on;
|
||||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
||||
listen 80;
|
||||
index index.php index.html;
|
||||
charset utf-8;
|
||||
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
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 / {
|
||||
root ${staticAssetsPath};
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
gzip_static on;
|
||||
root ${staticAssetsPath};
|
||||
try_files $uri $uri/ /index.html;
|
||||
add_header Cache-Control "no-cache, must-revalidate";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user