Update Caddyfile to Add X-Real-IP to fix bot detection

Bot detection complains about not having X-Real-IP which is required https://docs.searxng.org/src/searx.botdetection.html#id4 this adds the header and fixes the problem for me.
This commit is contained in:
ChillyKitty 2023-06-20 02:45:04 +00:00 committed by GitHub
parent e76656a162
commit 8b2d017136
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,6 +92,7 @@
reverse_proxy localhost:8080 {
header_up X-Forwarded-Port {http.request.port}
header_up X-Forwarded-Proto {http.request.scheme}
header_up X-Real-IP {remote_host}
}
}