Git Product home page Git Product logo

Comments (4)

tomlawesome avatar tomlawesome commented on September 3, 2024

Well, that was quick... after numerous hours here and there toying with this over the week.... I finally realised that maybe Filtron thinks I'm a bot (because of the way I'm requesting) or something. So I just edited rules.json to change all the stop: true values to stop: false and upped the rate limits to 9999999999 and lo and behold it works! No more rate limiting.

Will try and figure out exactly which parameters were causing the issue and update the issue before I close, but that's a job for the morning at this time of night!

from searx-docker.

unixfox avatar unixfox commented on September 3, 2024

Duplicate of #63
searx-docker behind a reverse proxy is not yet supported.

from searx-docker.

tomlawesome avatar tomlawesome commented on September 3, 2024

@unixfox i think you should reconsider saying it’s not supported.

After much trial and error minimal changes to the current setup allow it to work:

  • Letting caddy just issue a self signed cert from its built in root CA (this is automatically done by just not setting up let’s encrypt). If you want custom certs this can be done with the existing docker-compose-extend or a docker-compose-override file, and just mount the files to Caddy, which can then be used in Caddyfile as per Caddy docs (it’s a single line in the config). Letting it self sign is pretty much part of normal searx-docker setup.
  • Just comment out the CSP lines for morty/notmorty in Caddyfile if you already have CSP with the reverse proxy you use. If you don’t use CSP there, then just edit it accordingly. Opening a browser console, inspecting it whilst load the page will show which CSP need to be changed. This is very easy in the end with basic Google-fu.
  • Edit rules.json to allow filtron to pass results to the reverse proxy by changing the rate limiting settings. This is not a problem, because all reverse proxy have rate limit facility
  • Edit the .env host name to include both your FQDN and the local ip of the server / VM running searx in the SEARXHOSTNAME variable. You might only need local or FQDN, I haven’t checked yet. This is normal setup anyway.
  • Change settings.yml for searx to have a bind address of the server/VM IP (e.g 192.168.1.2 or whatever) and change base_url to ‘False’. Again this is normal setup step for searx-docker.

This means that only rules.json and Caddyfile actually get changed and none of the changes are complex just not necessarily obvious.

from searx-docker.

unixfox avatar unixfox commented on September 3, 2024

We aren't against the ability to reverse proxy searx-docker, that's why I said "yet". It's just that it all started as a project to easily launch searx on any Linux server, and we (well dalf), didn't consider at first the reverse proxies.

If you have time to rework the current project so that it works with a reverse proxy and without a reverse proxy I would gladly accept your contribution but currently at the Searx team we don't have time to work on that sorry.

from searx-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.