diff options
| author | Ivan Gabaldon <igabaldon@inetol.net> | 2025-07-19 10:18:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-19 10:18:50 +0200 |
| commit | b95a3e905d05695a04c424764b8c58020ca38b5c (patch) | |
| tree | b415f1536d5c1d02216d05859b7409a94559e0f2 | |
| parent | be392a45fcab0328b2cf0c90e6a7018b0f05cd99 (diff) | |
[fix] container: remove static path mount (#5006)
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
| -rw-r--r-- | container/Dockerfile | 3 |
1 files changed, 1 insertions, 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 |