Closed tomlawesome closed 3 years ago
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!
Duplicate of https://github.com/searx/searx-docker/issues/63 searx-docker behind a reverse proxy is not yet supported.
@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:
This means that only rules.json and Caddyfile actually get changed and none of the changes are complex just not necessarily obvious.
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.
I'm able to view the main site behind a reverse proxy using this stack, with minor tweaks to docker-compose.yml and the Caddyfile.
However, everytime I try to search something I get 'rate limit exceeded'. My reverse proxy is not rate limiting anything at all (because I've turned it off for this domain) and I've set Filtron's rules.json to very high values. Does Morty include some kind of built in rate limiting I'm un aware of?
The above image is all I get to see in the browsers, but the console shows: