diff --git a/searxng/.env b/searxng/.env index f3c6a19..9eedaff 100644 --- a/searxng/.env +++ b/searxng/.env @@ -1,2 +1,4 @@ BASE_URL=searx. EMAIL= + +SEARXNG_SECRET= diff --git a/searxng/Dockerfile b/searxng/Dockerfile deleted file mode 100644 index f1f087a..0000000 --- a/searxng/Dockerfile +++ /dev/null @@ -1,5 +0,0 @@ -FROM docker.io/searxng/searxng:latest -COPY settings.yml /tmp/ -COPY entrypoint.sh /usr/local/bin/ -ENTRYPOINT ["entrypoint.sh"] -CMD ["/sbin/tini", "--", "/usr/local/searxng/dockerfiles/docker-entrypoint.sh"] diff --git a/searxng/compose.yaml b/searxng/compose.yaml index 088aa55..2383ec2 100644 --- a/searxng/compose.yaml +++ b/searxng/compose.yaml @@ -19,11 +19,13 @@ services: - redis:/data/ searxng: - build: . + image: docker.io/searxng/searxng:latest restart: unless-stopped volumes: - config:/etc/searxng/ + - ./settings.yml:/etc/searxng/settings.yml environment: + - SEARXNG_SECRET - REDIS_HOST=redis networks: - nginx diff --git a/searxng/settings.yml b/searxng/settings.yml index 92dcdf5..1bc4bed 100644 --- a/searxng/settings.yml +++ b/searxng/settings.yml @@ -33,14 +33,10 @@ search: # use codes from 'languages.py' default_lang: "auto" # Available languages - # languages: - # - all - # - en - # - en-US - # - de - # - it-IT - # - fr - # - fr-BE + languages: + - fr + - en + - all # ban time in seconds after engine errors ban_time_on_fail: 5 # max ban time in seconds after engine errors @@ -74,11 +70,12 @@ server: # by ${SEARXNG_URL}. base_url: false # "http://example.com/location" limiter: false # rate limit the number of request on the instance, block some bots + public_instance: true # enable features designed only for public instances # If your instance owns a /etc/searxng/settings.yml file, then set the following # values there. - secret_key: "ultrasecretkey" # Is overwritten by ${SEARXNG_SECRET} +# secret_key: "ultrasecretkey" # Is overwritten by ${SEARXNG_SECRET} # Proxying image results through searx image_proxy: false # 1.0 and 1.1 are supported @@ -95,7 +92,7 @@ server: redis: # URL to connect redis database. Is overwritten by ${SEARXNG_REDIS_URL}. - # https://redis-py.readthedocs.io/en/stable/connections.html#redis.client.Redis.from_url + # https://docs.searxng.org/admin/settings/settings_redis.html#settings-redis url: false ui: @@ -123,6 +120,11 @@ ui: theme_args: # style of simple theme: auto, light, dark simple_style: auto + # Perform search immediately if a category selected. + # Disable to select multiple categories at once and start the search manually. + search_on_category_select: true + # Hotkeys: default or vim + hotkeys: vim # Lock arbitrary settings on the preferences page. To find the ID of the user # setting you want to lock, check the ID of the form on the page "preferences". @@ -202,26 +204,25 @@ outgoing: # Comment or un-comment plugin to activate / deactivate by default. # -# enabled_plugins: -# # these plugins are enabled if nothing is configured .. -# - 'Hash plugin' -# - 'Search on category select' -# - 'Self Information' -# - 'Tracker URL remover' -# - 'Ahmia blacklist' # activation depends on outgoing.using_tor_proxy +enabled_plugins: + # these plugins are enabled if nothing is configured .. + - 'Hash plugin' + - 'Self Information' + - 'Tracker URL remover' + - 'Ahmia blacklist' # activation depends on outgoing.using_tor_proxy # # these plugins are disabled if nothing is configured .. -# - 'Hostname replace' # see hostname_replace configuration below + - 'Hostname replace' # see hostname_replace configuration below # - 'Open Access DOI rewrite' -# - 'Vim-like hotkeys' # - 'Tor check plugin' # # Read the docs before activate: auto-detection of the language could be # # detrimental to users expectations / users can activate the plugin in the # # preferences if they want. -# - 'Autodetect search language' + - 'Autodetect search language' # Configuration of the "Hostname replace" plugin: # -# hostname_replace: +hostname_replace: + '(.*\.)?quora\.com': false # '(.*\.)?youtube\.com$': 'invidious.example.com' # '(.*\.)?youtu\.be$': 'invidious.example.com' # '(.*\.)?youtube-noocookie\.com$': 'yotter.example.com' @@ -283,7 +284,6 @@ categories_as_tabs: general: images: videos: - news: map: engines: @@ -365,7 +365,10 @@ engines: - name: wikipedia engine: wikipedia shortcut: wp + # add "list" to the array to get results in the results list + display_type: ["infobox"] base_url: 'https://{language}.wikipedia.org/' + categories: [general] - name: bilibili engine: bilibili @@ -440,6 +443,12 @@ engines: shortcut: opv disabled: true + - name: chefkoch + engine: chefkoch + shortcut: chef + # to show premium or plus results too: + # skip_premium: false + # - name: core.ac.uk # engine: core # categories: science @@ -579,21 +588,36 @@ engines: shortcut: wd timeout: 3.0 weight: 2 + # add "list" to the array to get results in the results list + display_type: ["infobox"] tests: *tests_infobox + categories: [general] - name: duckduckgo engine: duckduckgo shortcut: ddg - name: duckduckgo images - engine: duckduckgo_images + engine: duckduckgo_extra + categories: [images, web] + ddg_category: images shortcut: ddi - timeout: 3.0 + + - name: duckduckgo videos + engine: duckduckgo_extra + categories: [videos, web] + ddg_category: videos + shortcut: ddv + + - name: duckduckgo news + engine: duckduckgo_extra + categories: [news, web] + ddg_category: news + shortcut: ddn - name: duckduckgo weather engine: duckduckgo_weather shortcut: ddw - disabled: true - name: apple maps engine: apple_maps @@ -642,7 +666,6 @@ engines: engine: www1x shortcut: 1x timeout: 3.0 - disabled: true - name: fdroid engine: fdroid @@ -786,6 +809,12 @@ engines: play_categ: movies disabled: true + - name: material icons + engine: material_icons + categories: images + shortcut: mi + disabled: true + - name: gpodder engine: json_engine shortcut: gpod @@ -826,6 +855,11 @@ engines: require_api_key: false results: HTML + - name: hackernews + engine: hackernews + shortcut: hn + disabled: true + - name: hoogle engine: xpath paging: true @@ -851,6 +885,11 @@ engines: timeout: 6.0 disabled: true + - name: imgur + engine: imgur + shortcut: img + disabled: true + - name: ina engine: ina shortcut: in @@ -882,9 +921,14 @@ engines: - name: kickass engine: kickass + base_url: + - https://kickasstorrents.to + - https://kickasstorrents.cr + - https://kickasstorrent.cr + - https://kickass.sx + - https://kat.am shortcut: kc timeout: 4.0 - disabled: true - name: lemmy communities engine: lemmy @@ -983,6 +1027,25 @@ engines: require_api_key: false results: HTML + - name: mastodon users + engine: mastodon + mastodon_type: accounts + base_url: https://mastodon.social + shortcut: mau + + - name: mastodon hashtags + engine: mastodon + mastodon_type: hashtags + base_url: https://mastodon.social + shortcut: mah + + # - name: matrixrooms + # engine: mrs + # # https://docs.searxng.org/dev/engines/online/mrs.html + # # base_url: https://mrs-api-host + # shortcut: mtrx + # disabled: true + - name: metacpan engine: metacpan shortcut: cpan @@ -1165,6 +1228,10 @@ engines: engine: photon shortcut: ph + - name: pinterest + engine: pinterest + shortcut: pin + - name: piped engine: piped shortcut: ppd @@ -1252,7 +1319,7 @@ engines: results: HTML - name: qwant - qwant_categ: web-lite + qwant_categ: web engine: qwant shortcut: qw categories: [general, web] @@ -1302,6 +1369,10 @@ engines: # categories: files # disabled: true + - name: radio browser + engine: radio_browser + shortcut: rb + - name: reddit engine: reddit shortcut: re @@ -1344,6 +1415,11 @@ engines: api_site: 'askubuntu' categories: [it, q&a] + - name: internetarchivescholar + engine: internet_archive_scholar + shortcut: ias + timeout: 5.0 + - name: superuser engine: stackexchange shortcut: su @@ -1442,12 +1518,16 @@ engines: - name: tagesschau engine: tagesschau + # when set to false, display URLs from Tagesschau, and not the actual source + # (e.g. NDR, WDR, SWR, HR, ...) + use_source_url: true shortcut: ts disabled: true - name: tmdb engine: xpath paging: true + categories: movies search_url: https://www.themoviedb.org/search?page={pageno}&query={query} results_xpath: //div[contains(@class,"movie") or contains(@class,"tv")]//div[contains(@class,"card")] url_xpath: .//div[contains(@class,"poster")]/a/@href @@ -1489,11 +1569,6 @@ engines: # - 2000 # - 5000 - - name: twitter - shortcut: tw - engine: twitter - disabled: true - # tmp suspended - too slow, too many errors # - name: urbandictionary # engine : xpath @@ -1614,6 +1689,7 @@ engines: categories: [general, wikimedia] base_url: "https://{language}.wikisource.org/" search_type: text + disabled: true about: website: https://www.wikisource.org/ wikidata_id: Q263 @@ -1813,15 +1889,26 @@ engines: shortcut: mvw disabled: true - # - name: yacy - # engine: yacy - # shortcut: ya - # base_url: http://localhost:8090 - # # required if you aren't using HTTPS for your local yacy instance' - # enable_http: true - # timeout: 3.0 - # # Yacy search mode. 'global' or 'local'. - # search_mode: 'global' + - name: yacy + engine: yacy + categories: general + search_type: text + base_url: https://yacy.searchlab.eu + shortcut: ya + disabled: true + # required if you aren't using HTTPS for your local yacy instance + # https://docs.searxng.org/dev/engines/online/yacy.html + # enable_http: true + # timeout: 3.0 + # search_mode: 'global' + + - name: yacy images + engine: yacy + categories: images + search_type: image + base_url: https://yacy.searchlab.eu + shortcut: yai + disabled: true - name: rumble engine: rumble @@ -1893,6 +1980,28 @@ engines: timeout: 10.0 disabled: true + - name: tootfinder + engine: json_engine + categories: ['social media'] + paging: false + search_url: https://www.tootfinder.ch/rest/api/search/{query} + url_query: uri + title_query: card/title + content_query: content + thumbnail_query: card/image + shortcut: toot + about: + website: https://tootfinder.ch/ + official_api_documentation: https://wiki.tootfinder.ch/index.php?name=the-tootfinder-rest-api + use_official_api: true + require_api_key: false + results: 'JSON' + + - name: wallhaven + engine: wallhaven + # api_key: abcdefghijklmnopqrstuvwxyz + shortcut: wh + # wikimini: online encyclopedia for children # The fulltext and title parameter is necessary for Wikimini because # sometimes it will not show the results and redirect instead