-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add an example for reverse proxy #63
Comments
something like this but based on the official searx image
|
There is no need to complicate the things. Just set |
it didnt work |
You are right, I just tested and it didn't work without modifying the direct docker-compose.yml. |
Setting SEARX_HOSTNAME=http://localhost:8081 and changing docker-compose.yaml s BASE_URL to http only does not do the trick. Apache shows a blank page using Proxypass http://localhost:8081 |
any progress here ? I still could not manage to get it working with the following changes: In .env: In docker-compose-yaml: In Apache2 config: I just land on a blank page when trying to access searx instance. |
use the docker compose example i listed before. |
@fareszr @unixfox |
i don't think the version matters, as i don't use any 3.x specific feature. |
Well, it does not: |
well that's because you dot have the rule.json file needed for filtron to work. you have to create for searx its the same issue i mounted the settings.yml file to allow for custom settings. you should create if you don't want custom settings.yml you can comment the volumes sections in the searx container, however morty wouldnt work since you have to enable it manually. as for filtron, rules.json is essential. |
I see then this is the difference between the 3.3 and the 3.7 config file as the rule.json as well as the rest of the necessary files are created when the launch script runs. |
No, this is a common mistake, when mounting specific files, if they don't exist before the container starts, docker will create a directory instead of a file. |
@fareszr Summing up, @unixfox solution with v3.7 works just fine if you proceed as follows: In .env: In docker-compose-yaml within searx section: In /searx/settings.yml under server section: In Apache2 config: |
wait, you were trying these options on the official image ?. |
Yes, cause this is the github repo for the official image. |
A short update: |
I'd like, too, the option to have a container that is forwardable. I want to add searx to my private server wich is already forwarded with nginx. Installing this container doesnt work because it conflicts with the standard ports used by nginx. Not being familiar with this stack i have no confidence changing any setting. P.S. Solutions posted here didn't work for me. |
@fareszr
I use your docker-compose.yml, but it dose not work well. I try access url |
its 8004/8005 |
This is something I'm trying to accomplish too, and it's frankly impossible without changing parts of the docker-compose.yml && the Caddyfile. I've managed to get it forwarded to the front end loads but it won't query as it says it's 'rate limit exceeded'. Is Caddy actually required here at all? Just wondering if this container setup would be relatively easy to strip Caddy out of leaving just a direct connection to Filtron/morty using an existing reverse proxy? I am of course making an assumption here, but I can't imagine many people have a use case where the only thing on their domain that they're self-hosting is searx. Locally it functions perfectly well (for me) at the root of the local IP, but if you want to run TLS between the two containers, it gets gnarly. I find Caddy an odd choice too -- it's a great bit of kit, but it seems relatively new and there's little documentation on the web for users to self-help. |
I found myself in the same spot. However, leaving Caddy just aside and directly reverse proxy to Filtron works perfectly fine for me. |
So this is what works for you? What local ip and port do you forward in the proxy?
|
@akanealw The relevant apache2 reverse proxy config part looks like this:
|
@Flunkyball could you please share all apache conf file? |
I have followed all steps and am still revieving an "Rate Limit exceeded" error |
enable websockets.
filtron requires websockets. users without websockets will get rate limited.
…On Sun, Jan 30 2022 at 04:50:22 PM -0000, searx/searx-docker - reply+aipxadsqo5b3iasvfhzlyd6aakrmxevbnhhcztc7me at reply.github.com ***@***.***> wrote:
I have followed all steps and am still revieving an "Rate Limit exceeded" error
—
Reply to this email directly, [view it on GitHub](#63 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AIPXADVJEWEXQUJ67DFBARLUYVT4XANCNFSM4UDXPL7A).
Triage notifications on the go with GitHub Mobile for [iOS](https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or [Android](https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
How would I add a websocket for this using NGinX? |
Filtron doesn't need websockets, that's not true. |
I got it working with nginx and here's the temporary workaround by changing filtron's rules.json to this:
You'll lose filtron's protection, but my instance is not exposed to the internet, since I added certain rules to only allow connection from the local network and VPN clients. EDITED: including my docker-compose.yml Make sure your filtron container is reachable by your reverse proxy container since this compose does not expose ports outside of the container's network for security reasons. However, this compose work with multiple stacks of containers and networks that were created beforehand.
This one is all in one solution if running standalone searx server which is a good example of how to run searx with reverse proxy.
|
Hi, here is a full TLS config in case anyone needs for redirecting from a docker containers 8080 to the hosts 3030 (without TLS) and then forwarding to 443 with TLS:
In the browser you would set: If I did something is suboptimal let me know, just here to help out. |
hi i have been trying to deploy this behind an apache2 reverse proxy a couple times, and still cant get it to work with caddy, and if i use filtron directly all files are using localhost instead of the real domain.
can you please add a new docker-compose file for reverse proxies?
with no https and a simple setting to change the output port and the base domain.
and without the need to create a systemd service
The text was updated successfully, but these errors were encountered: