From f92df32f6feecc25ae93f2925eb1179694626905 Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Sun, 29 Oct 2023 15:46:13 +0100 Subject: [PATCH] remove webp support --- .../sites/paraclub.cloonar.dev.nix | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/hosts/web-01.cloonar.com/sites/paraclub.cloonar.dev.nix b/hosts/web-01.cloonar.com/sites/paraclub.cloonar.dev.nix index 76ab03d..3a02864 100644 --- a/hosts/web-01.cloonar.com/sites/paraclub.cloonar.dev.nix +++ b/hosts/web-01.cloonar.com/sites/paraclub.cloonar.dev.nix @@ -18,23 +18,6 @@ in { index index.html; ''; - locations."~* \.(jpe?g|png)$".extraConfig = '' - set $red Z; - - if ($http_accept ~* "webp") { - set $red A; - } - - if (-f $document_root/webp/$request_uri.webp) { - set $red "''${red}B"; - } - - if ($red = "AB") { - add_header Vary Accept; - rewrite ^ /webp/$request_uri.webp; - } - ''; - locations."~* \.(js|jpg|gif|png|webp|css|woff2)$".extraConfig = '' expires 365d; add_header Pragma "public";