Closed y0nei closed 1 year ago
after looking into this comment on this issue, i have added the headers listed in there, seems to fix the too many requests
error
after looking into this comment on this issue, i have added the headers listed in there, seems to fix the
too many requests
error
Yes, you have to set the HTTP headers / its now documented here https://docs.searxng.org/src/searx.botdetection.html#x-forwarded-for
Hello, im running docker with searxng and i want to make nginx work properly on it but i keep getting thrown off by wierd issues. I have searched
searxng/searxng-docker
,searxng/searxng
and the documentation and every single one of those recommend a diffirent method and config for setting nginx. The way i want to do it is have a static configuration for nginx and reverse proxy searxng with it.I am aware that #15 shows how to set up nginx with searxng but i cant seem to figure out how and which configuration to use, caddyfile adds headers, and none of these are mentioned in issue #15
heres is how my
nginx.conf
looks like (and excuse my intendtation in the post)all the
add_header
options inlocation /
i have added from caddyconfig, previously i had them running on nginx proxy manager and worked just fine. But once the instance has gone public, it would constantly return too many requestsI have tried this solution from Originally posted by @return42 in https://github.com/searxng/searxng-docker/issues/55#issuecomment-1209446559
It works fine in nginx itself but sadly it wouldnt work in nginx proxy manager.
Theres also an issue with
/static
that cant load any resources because of theContent-Security-Policy
header in the / location\ without this, it loads fine, thats why i have it commented out abovefor
.env
i haveSEARXNG_HOSTNAME=searx.zimro.xyz
and mydocker-compose.yml
looks like thisand yes, im not setting ssl inside my
nginx.conf
since i use nginx proxy manager to reverse proxy it. (i know its pointless and i can just use npm to manage the nginx config but its cleaner for me that way)