Rework Caddyfile (#255)

* rework Caddyfile

* fix missing "public" directive

* features cleanup

Since this header is attached to each outgoing request the overall size is slightly increased by 300 bytes, we don't care if the site is allowed to play media in the background, so with the vast majority of features that have been added (and those that were already present)

* restore encode directive

Caddyserver actually did passthrough the precompressed resources served by uWSGI (Oops)

* merge upstream changes

* fix typo

---------

Co-authored-by: Émilien (perso) <4016501+unixfox@users.noreply.github.com>
This commit is contained in:
Ivan Gabaldon
2025-02-14 10:27:41 +01:00
committed by GitHub
parent a899b72a50
commit 5fc00a3285
2 changed files with 85 additions and 94 deletions

View File

@@ -11,8 +11,7 @@ services:
- caddy-data:/data:rw
- caddy-config:/config:rw
environment:
- SEARXNG_HOSTNAME=${SEARXNG_HOSTNAME:-http://localhost:80}
- SEARXNG_TLS=${LETSENCRYPT_EMAIL:-internal}
- SEARXNG_TLS=${LETSENCRYPT_EMAIL}
cap_drop:
- ALL
cap_add: