diff options
author | Marc Coquand <marc@mccd.space> | 2024-01-30 10:35:20 -0600 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-01-30 10:35:20 -0600 |
commit | 3ae3f0e59606de99ffd6c6234682eefee8146ec3 (patch) | |
tree | 62665fcecbfa38dba5352f8ab16dff4777ed4390 /configuration.nix | |
parent | bbcbab88e42dbfeae8191bd6af77c7ad5fe46f3d (diff) | |
download | nixos-3ae3f0e59606de99ffd6c6234682eefee8146ec3.tar.gz nixos-3ae3f0e59606de99ffd6c6234682eefee8146ec3.tar.bz2 nixos-3ae3f0e59606de99ffd6c6234682eefee8146ec3.zip |
Add Cache to Ann
Diffstat (limited to '')
-rw-r--r-- | configuration.nix | 4 |
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"; |