From a9cadb2e21beb0eb9f235d0bc72e29c8ddde686a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20H=C3=BCske?= Date: Sun, 30 Jun 2024 07:33:28 +0200 Subject: [PATCH] Add cache --- conf/nginx/default.conf.template | 2 +- conf/nginx/nginx.conf | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/conf/nginx/default.conf.template b/conf/nginx/default.conf.template index 7f08967..4aa5554 100644 --- a/conf/nginx/default.conf.template +++ b/conf/nginx/default.conf.template @@ -43,7 +43,7 @@ server { } location /purge-all { - limit_except PURGE { + limit_except DELETE { deny all; } allow 127.0.0.1; diff --git a/conf/nginx/nginx.conf b/conf/nginx/nginx.conf index fa78599..057e2ce 100644 --- a/conf/nginx/nginx.conf +++ b/conf/nginx/nginx.conf @@ -19,11 +19,6 @@ http { include /etc/nginx/mime.types; default_type application/octet-stream; - map $request_method $purge_method { - default 0; - PURGE 1; - } - map $http_accept $webp_suffix { default ""; "~*webp" ".webp";