Comments (4)
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.
Duplicate of #63
searx-docker behind a reverse proxy is not yet supported.
from searx-docker.
@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.
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)
- Option "source_ips" not working
- Yet another "Rate limit exceeded" issue HOT 1
- why does my searx show the server ip instead of my domain
- Delete
- Change Caddy Port? HOT 3
- Cannot parse selector Header in rules.json => All engines timing out HOT 1
- Permissions Policy Header is malformed HOT 1
- Can you make some instructions for windows users? HOT 7
- Caddy Error: `listening on :443: listen tcp :443: bind: address already in use` HOT 1
- SSL Protocol Error HOT 2
- URI wrong hostname/hostname/search instead of hostname/search HOT 1
- Settings from settings.yml don't affect searx HOT 2
- I use docker-compose to start, but fail to access it HOT 1
- Stuck after searx | [uwsgi-static] added mapping for /static => /usr/local/searx/searx/static. HOT 1
- Switch to built-in IPv6 now that Docker supports IPv6 nat in its userland
- How to use something in the data directory using docker-compose
- change Morty URL
- Error when running start.sh HOT 1
- How to use Nginx as a proxy instead HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from searx-docker.