all repos — nixfiles @ 1a9536b27edae08935de8275838c4e09d920cd30

System and user configuration, managed by nix and home-manager

linde: enable caching of calendar endpoint

Alan Pearce
commit

1a9536b27edae08935de8275838c4e09d920cd30

parent

165064e6f3ca8d6e77adcb6c0c5d466d6d9f436e

1 file changed, 12 insertions(+), 0 deletions(-)

changed files
M system/linde.nixsystem/linde.nix
@@ -506,6 +506,15 @@
services.caddy = { enable = true; group = "caddy"; + package = pkgs.nur.repos.xyenon.caddy.withPlugins { + plugins = [ + "github.com/caddyserver/cache-handler@v0.15.0" + ]; + hash = "sha256-LY2rMA1Y3LRkRYpnA/O7O48nx78NnIT5BZQJhe5l/Ks="; + }; + globalConfig = '' + cache + ''; virtualHosts = let inherit (import ../lib/caddy.nix { inherit lib; }) security-headers;
@@ -618,6 +627,9 @@ srv = config.services.mycal;
in '' encode zstd gzip + cache { + ttl 1h + } reverse_proxy ${srv.host}:${toString srv.port} ''; };