Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cb68ef9e8a |
16
flake.nix
16
flake.nix
@@ -62,10 +62,26 @@
|
|||||||
|
|
||||||
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 / {
|
||||||
gzip_static on;
|
gzip_static on;
|
||||||
root ${staticAssetsPath};
|
root ${staticAssetsPath};
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
|
add_header Cache-Control "no-cache, must-revalidate";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user