irishjd Posted July 2, 2022 Share Posted July 2, 2022 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 Quote Link to comment
Tymarand Posted July 4, 2022 Share Posted July 4, 2022 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 Quote Link to comment
irishjd Posted July 5, 2022 Author Share Posted July 5, 2022 Hi Chris, I installed SearXNG via the Community Apps plugin on my Unraid console. I kept all default settings. Quote Link to comment
Tymarand Posted July 5, 2022 Share Posted July 5, 2022 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 Quote Link to comment
irishjd Posted July 5, 2022 Author Share Posted July 5, 2022 Thanks Chris, I really appreciate it! BTW... I am an Unraid newby so I am probably overlooking something. Quote Link to comment
Tymarand Posted July 5, 2022 Share Posted July 5, 2022 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 1 Quote Link to comment
Tymarand Posted July 13, 2022 Share Posted July 13, 2022 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 Quote Link to comment
irishjd Posted July 13, 2022 Author Share Posted July 13, 2022 That's entirely possible. I am thinking that I will need to setup some sort of proxy to get this to work. Quote Link to comment
Admiralham Posted July 13, 2022 Share Posted July 13, 2022 I installed SearXNG via the Community Apps, then built a custom config file for Swag. I can now access SearXNG via HTTPS using Swag. Quote Link to comment
Solution Admiralham Posted July 13, 2022 Solution Share Posted July 13, 2022 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; } } Quote Link to comment
elvismercado Posted August 17, 2022 Share Posted August 17, 2022 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 Quote Link to comment
opentoe Posted September 30, 2022 Share Posted September 30, 2022 What is SearXNG? Quote Link to comment
irishjd Posted October 4, 2022 Author Share Posted October 4, 2022 It is your own search engine Quote Link to comment
evertinker Posted October 8, 2022 Share Posted October 8, 2022 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/ Quote Link to comment
irishjd Posted October 13, 2022 Author Share Posted October 13, 2022 @evertinker thanks for the suggestion, I'll give it a shot! Quote Link to comment
Mattaton Posted November 23, 2022 Share Posted November 23, 2022 @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. Quote Link to comment
irishjd Posted November 24, 2022 Author Share Posted November 24, 2022 @Mattaton, yes, I did get this working. I’ll do a write-up of my solution tomorrow and post it here. Quote Link to comment
Mattaton Posted November 24, 2022 Share Posted November 24, 2022 Thanks! Much appreciated! Quote Link to comment
irishjd Posted November 25, 2022 Author Share Posted November 25, 2022 @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. 1 Quote Link to comment
Mattaton Posted November 25, 2022 Share Posted November 25, 2022 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! Quote Link to comment
Recommended Posts
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.