Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
services:searxng [2024/03/26 08:11] – created willy | services:searxng [2024/11/11 06:54] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== Installation ===== | ===== Installation ===== | ||
- | There are multiple installation approaches possible. You can either go with containers or bare-metal. While i usually | + | There are multiple installation approaches possible. You can either go with containers or bare-metal. While i usually |
- | So, as usual create the user and clone the repo and copy the compose yaml | + | So, as usual create the user, then clone the repository |
<code bash> | <code bash> | ||
- | useradd -d /deposito/ | + | useradd -d /data/ |
su - searxng | su - searxng | ||
git clone https:// | git clone https:// | ||
Line 15: | Line 15: | ||
</ | </ | ||
- | Now you don't want Caddy because you already have NGINX as reverse proxy, so : | + | Now you don't want Caddy because you already have NGINX as reverse proxy, so edit the docker compose file like the following example: |
<file - docker-compose.yml> | <file - docker-compose.yml> | ||
version: " | version: " | ||
Line 23: | Line 23: | ||
image: docker.io/ | image: docker.io/ | ||
networks: | networks: | ||
- | - searxng | + | - searxng-net |
ports: | ports: | ||
- " | - " | ||
Line 43: | Line 43: | ||
networks: | networks: | ||
- | searxng: | + | searxng-net: |
ipam: | ipam: | ||
driver: default | driver: default | ||
Line 55: | Line 55: | ||
Remember to set an available port (8083)! | Remember to set an available port (8083)! | ||
- | Now pull and start it: | + | Now pull it: |
<code bash> | <code bash> | ||
podman compose pull | podman compose pull | ||
</ | </ | ||
- | To start it, and set it up on boot, as usual add the following lines to your **/ | ||
- | < | ||
- | podmnan network create searxng | ||
- | su - searxng -c " | ||
- | </ | ||
- | and to the **/etc/local.d/80-containers.stop**: | + | ===== Reverse Proxy ===== |
+ | |||
+ | You can run SearXNG both as a subdomain or a subpath. I prefer the first one because it make it easier | ||
+ | |||
+ | I assume | ||
+ | |||
+ | Following [[https:// | ||
+ | < | ||
+ | server { | ||
+ | server_name search.mydomain.com; | ||
+ | listen 443 ssl; | ||
+ | listen 8443 ssl; | ||
+ | http2 on; | ||
+ | |||
+ | access_log / | ||
+ | error_log / | ||
+ | |||
+ | location / { | ||
+ | |||
+ | proxy_pass http:// | ||
+ | |||
+ | proxy_set_header | ||
+ | proxy_set_header | ||
+ | |||
+ | # see flaskfix.py | ||
+ | proxy_set_header | ||
+ | proxy_set_header | ||
+ | |||
+ | # see limiter.py | ||
+ | proxy_set_header | ||
+ | proxy_set_header | ||
+ | |||
+ | access_log / | ||
+ | error_log | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | and add it to your NGINX configuration. See [[selfhost: | ||
+ | |||
+ | SSO can be added using the **basic** endpoint in Authelia or NGINX PAM Auth. | ||
+ | |||
+ | ===== Add to firefox ===== | ||
+ | |||
+ | Navigate your firefox to **https:// | ||
+ | |||
+ | ===== Autostart ===== | ||
+ | |||
+ | To start it, and set it up on boot, as usual follow my indications [[gentoo: | ||
< | < | ||
- | su - searxng | + | ln -s / |
</ | </ | ||
- | You can start it now by running | + | and create |
+ | <file - /etc/conf.d/ | ||
+ | USER=searxng | ||
+ | DESCRIPTION=" | ||
+ | </ | ||
- | ===== Reverse Proxy ===== | + | Add the service to the default runlevel and start it now: |
+ | <code bash> | ||
+ | rc-update add user-containers.searxng default | ||
+ | rc-service user-containers.searxng start | ||
+ | </ | ||
- | .. [[https:// | ||