July 2, 20224 yr Hello (unraid noob here), I just installed SearXNG, and it is working fine. I was trying to figure out how to get it to work with https as well. I did some research on the SeraXNG Docker image, and the documentation states that this is controlled via a file name ".env" in the root of the container. I do not see this file in the Unraid SearXNG Docker image, and manually creating it does not appear to help. I am sure that I am overlooking something here and would appreciate a push in the right direction. Jon
July 4, 20224 yr Good day Jon, I'm sorry but I don't know the answer (yet) to your question but I was hoping you could enlighten me on how you installed SearXNG on Unraid? I have looked and can't find any documentation on how to do so. I would appreciate any information so that I may assist you in your question. Regards, Chris
July 5, 20223 yr Author Hi Chris, I installed SearXNG via the Community Apps plugin on my Unraid console. I kept all default settings.
July 5, 20223 yr Well... I feel stupid. I didn't even think to look at the actual Community Apps. I was under the impression that it was a custom installation of a Docker container. From what I'm seeing through research is that enabling HTTPS may have something to do with configuring proxies. I am continuing to look and will post again if I find something of value. Regards, Chris
July 5, 20223 yr Author Thanks Chris, I really appreciate it! BTW... I am an Unraid newby so I am probably overlooking something.
July 5, 20223 yr Blind leading the blind my friend. I haven't been using Unraid for very long myself. I think this is more of a SearXNG setting than Unraid though. We'll get it figured out!. Regards, Chris
July 13, 20223 yr irishjd, Just an update, I have not yet found any information on this. I'm wondering if it's even possible in unRAID? Regards, Chris
July 13, 20223 yr Author That's entirely possible. I am thinking that I will need to setup some sort of proxy to get this to work.
July 13, 20223 yr I installed SearXNG via the Community Apps, then built a custom config file for Swag. I can now access SearXNG via HTTPS using Swag.
July 13, 20223 yr Solution Here is my conf file for Swag. Hope it helps: ## Version 2021/05/21 # Ensure your DNS has a CNAME set for searxng and that searxng container is not using a base URL. server { listen 443 ssl; listen [::]:443 ssl; server_name my_subdomain.*; include /config/nginx/ssl.conf; client_max_body_size 0; location / { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app searxng; set $upstream_port 8080; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; } }
August 17, 20223 yr On 7/13/2022 at 10:15 PM, Admiralham said: Here is my conf file for Swag. Hope it helps: ## Version 2021/05/21 # Ensure your DNS has a CNAME set for searxng and that searxng container is not using a base URL. server { listen 443 ssl; listen [::]:443 ssl; server_name my_subdomain.*; include /config/nginx/ssl.conf; client_max_body_size 0; location / { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app searxng; set $upstream_port 8080; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; } } I did exactly this and still get a "502 Bad Gateway" error when I try to go to the page from the internet
October 8, 20223 yr you can try setting up Traefik as your reverse proxy. a lot of initial setup, but afterwards pretty much any docker container works no problem. i'm running searxng through it on https. https://docs.ibracorp.io/traefik/
November 23, 20223 yr @irishjd did you ever het this working? I'm in the same boat. I have Swag pointing at it, but I get the same "502 Bad Gateway" as @elvismercado when I try to access it via https. I can get it to work with http, but not with https. There has to be something in the SearXNG settings that we're missing.
November 24, 20223 yr Author @Mattaton, yes, I did get this working. I’ll do a write-up of my solution tomorrow and post it here.
November 25, 20223 yr Author @Mattaton instead of me trying and failing to provide you with decent instructions Take a look at this video: This is what I used to setup up my SearXNG https environment. If you happen to use CloudFlare as well, take a look at this too: This makes it super simple to enable https on any self-hosted app/site.
November 25, 20223 yr So, did you use swag? I have reverse proxy set up for several dockers already. For instance, it works fine for NextCloud, but I used the included NextCloud conf file in nginx (plus I had SpaceInvaderOne's video guide). There isn't an included conf file for SearXNG, so I've tried to build one based on NextCloud, but no matter what, the docker list always says the external port for SearXNG is 8080, whereas it's 443 for NextCloud. I'm most definitely a novice when it comes to this stuff, so extrapolating from other things doesn't always go well. 😄 If you used Swag, can I see what your nginx conf file looks like? Thanks!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.