searxng
change
commit 080154b530a0780aa0fbd76bef6e7d22c02145d8
author Alpha Chen <alpha@kejadlen.dev>
date
parent 7eb7115b
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 }} {