From 080154b530a0780aa0fbd76bef6e7d22c02145d8 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Sat, 6 Apr 2024 21:21:53 -0700 Subject: [PATCH] searxng --- lotus-land-story/templates/Caddyfile | 34 ++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/lotus-land-story/templates/Caddyfile b/lotus-land-story/templates/Caddyfile index 1b9b1ee..936882a 100644 --- a/lotus-land-story/templates/Caddyfile +++ b/lotus-land-story/templates/Caddyfile @@ -36,17 +36,33 @@ auth.{{ domain }} { } search.{{ domain }} { - forward_auth authelia:9091 { - uri /api/verify?rd=https://auth.{{ domain }} - # copy_headers Remote-User + log - # This import needs to be included if you're relying on a trusted proxies configuration. - import trusted_proxy_list - } + handle /opensearch.xml { + reverse_proxy searxng:8080 + } + + handle /static/* { + reverse_proxy searxng:8080 + } + + handle /autocompleter { + reverse_proxy searxng:8080 + } + + handle { + forward_auth authelia:9091 { + uri /api/verify?rd=https://auth.{{ domain }} + # copy_headers Remote-User - reverse_proxy searxng:8080 { - import trusted_proxy_list - } + # This import needs to be included if you're relying on a trusted proxies configuration. + import trusted_proxy_list + } + + reverse_proxy searxng:8080 { + import trusted_proxy_list + } + } } # {{ hledger.subdomain }}.{{ domain }} {