summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-01-30 10:35:20 -0600
committerMarc Coquand <marc@mccd.space>2024-01-30 10:35:20 -0600
commit3ae3f0e59606de99ffd6c6234682eefee8146ec3 (patch)
tree62665fcecbfa38dba5352f8ab16dff4777ed4390
parentbbcbab88e42dbfeae8191bd6af77c7ad5fe46f3d (diff)
downloadnixos-3ae3f0e59606de99ffd6c6234682eefee8146ec3.tar.gz
nixos-3ae3f0e59606de99ffd6c6234682eefee8146ec3.tar.bz2
nixos-3ae3f0e59606de99ffd6c6234682eefee8146ec3.zip
Add Cache to Ann
-rw-r--r--configuration.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/configuration.nix b/configuration.nix
index fff37e0..1804b58 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -151,6 +151,10 @@ in {
virtualHosts."orsus.id" = {
enableACME = true;
addSSL = true;
+ locations."~* .(?:css|js|woff2)$".extraConfig = ''
+ expires 1y;
+ add_header Cache-Control "public";
+ '';
locations."~" = {
proxyPass = "http://192.168.100.11:8080";