From c3bae5d8af9157fe8cce38ed639b54d227cc3b70 Mon Sep 17 00:00:00 2001 From: Ivan Gabaldon Date: Fri, 11 Jul 2025 17:56:16 +0200 Subject: [PATCH] [fix] container: remove static path mount I've seen that by default Granian sets a `Cache-Control` header for 1 day IF `GRANIAN_STATIC_PATH_MOUNT` is set. This option is not a hard requirement, but it's set because I found to be faster when serving the static files. Another thing is that by removing `GRANIAN_STATIC_PATH_MOUNT`, the headers set by the application are present again in the static files, which was not the case before. Related https://github.com/searxng/searxng/pull/5004 --- container/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/container/Dockerfile b/container/Dockerfile index 8613d1cb6..83fe3b999 100644 --- a/container/Dockerfile +++ b/container/Dockerfile @@ -51,8 +51,7 @@ ENV SEARXNG_VERSION="$SEARXNG_GIT_VERSION" \ GRANIAN_LOOP="uvloop" \ GRANIAN_BLOCKING_THREADS="4" \ GRANIAN_WORKERS_KILL_TIMEOUT="30" \ - GRANIAN_BLOCKING_THREADS_IDLE_TIMEOUT="300" \ - GRANIAN_STATIC_PATH_MOUNT="/usr/local/searxng/searx/static/" + GRANIAN_BLOCKING_THREADS_IDLE_TIMEOUT="300" VOLUME $CONFIG_PATH VOLUME $DATA_PATH