User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
services:searxng [2024/08/29 19:55] willyservices:searxng [2024/11/11 06:54] (current) – external edit 127.0.0.1
Line 9: Line 9:
 So, as usual create the user, then clone the repository and copy the **docker-compose.yaml**: So, as usual create the user, then clone the repository and copy the **docker-compose.yaml**:
 <code bash> <code bash>
-useradd -d /deposito/daemons/searxng -m searxng+useradd -d /data/daemons/searxng -m searxng
 su - searxng su - searxng
 git clone https://github.com/searxng/searxng-docker.git git clone https://github.com/searxng/searxng-docker.git
Line 43: Line 43:
  
 networks: networks:
-  searxng_net:+  searxng-net:
     ipam:     ipam:
       driver: default       driver: default
Line 65: Line 65:
 You can run SearXNG both as a subdomain or a subpath. I prefer the first one because it make it easier to integrate as Firefox default search engine. You can run SearXNG both as a subdomain or a subpath. I prefer the first one because it make it easier to integrate as Firefox default search engine.
  
-I assume the SearXNG will be reachable as **https;//search.mydomain.com**.+I assume the SearXNG will be reachable as **https://search.mydomain.com**.
  
 Following [[https://docs.searxng.org/admin/installation-nginx.html#installation-nginx|this page]] create a NGINX config file called **/etc/nginx/com.mydomain/search/search.conf** like this: Following [[https://docs.searxng.org/admin/installation-nginx.html#installation-nginx|this page]] create a NGINX config file called **/etc/nginx/com.mydomain/search/search.conf** like this:
Line 92: Line 92:
             proxy_set_header   X-Real-IP        $remote_addr;             proxy_set_header   X-Real-IP        $remote_addr;
             proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;             proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
- 
-            # proxy_buffering  off; 
-            # proxy_request_buffering off; 
-            # proxy_buffer_size 8k; 
  
             access_log /dev/null;             access_log /dev/null;
Line 105: Line 101:
 and add it to your NGINX configuration. See [[selfhost:nginx|The Reverse Proxy concept]] for more details. and add it to your NGINX configuration. See [[selfhost:nginx|The Reverse Proxy concept]] for more details.
  
-I have not been able to properly integrate SSO authentication, so i decided to disable it for the time being. It's only a search engine page after all, no personal data or access to personal services involved. +SSO can be added using the **basic** endpoint in Authelia or NGINX PAM Auth.
- +
-Using PAM Auth it can work, but Firefox will constantly show an annoying popup telling you that your search engine is going to use your login.  +
- +
-Using Authelia SSO instead, has two main drawbacks: it cannot be added to Firefox unless you temporarily disable Authelia, and subsequently will bug you with a login page every few times you search something+
  
 ===== Add to firefox ===== ===== Add to firefox =====

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information