linde: enable caching of calendar endpoint
1 file changed, 12 insertions(+), 0 deletions(-)
changed files
M system/linde.nix → system/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} ''; };