[enh] py: whitenoise for static handling (#5032)

While looking at ways to better handle static files, I saw a package that replaces Flask `static_folder` functionality. Not only it's considerably faster, but already includes the capability to serve sidecars without having to intercept. This also replaces the uWSGI folder mapping functionality.

Closes https://github.com/searxng/searxng/issues/4977
This commit is contained in:
Ivan Gabaldon
2025-07-23 18:16:10 +02:00
committed by GitHub
parent 5cbf422621
commit 42f102ce1b
6 changed files with 27 additions and 17 deletions

View File

@@ -19,3 +19,4 @@ tomli==2.2.1; python_version < '3.11'
msgspec==0.19.0
typer-slim==0.16.0
isodate==0.7.2
whitenoise==6.9.0