You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 in location / 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 requests
# see limiter.py
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
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 the Content-Security-Policy header in the / location
without this, it loads fine, thats why i have it commented out above
for .env i have SEARXNG_HOSTNAME=searx.zimro.xyz
and my docker-compose.yml looks like this
and 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)
The text was updated successfully, but these errors were encountered:
y0nei
changed the title
Issues deploying and configuring nginx with searxng
Issues configuring nginx with searxng, header issues and CSP blocked on /static
Oct 28, 2022
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 #55 (comment)
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 / locationwithout this, it loads fine, thats why i have it commented out above
for
.env
i haveSEARXNG_HOSTNAME=searx.zimro.xyz
and my
docker-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)The text was updated successfully, but these errors were encountered: