From 3ae3f0e59606de99ffd6c6234682eefee8146ec3 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Tue, 30 Jan 2024 10:35:20 -0600 Subject: Add Cache to Ann --- configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) 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"; -- cgit v1.2.3