Compare commits
6 Commits
c6dfd5c5ce
...
260f3c80ab
Author | SHA1 | Date | |
---|---|---|---|
260f3c80ab | |||
e2cca5edc8 | |||
30439afbe3 | |||
904e2365a6 | |||
477de95781 | |||
b5b19849fc |
2
.env
2
.env
@ -1,2 +1,2 @@
|
||||
PROD_URL=searx.gmoker.com
|
||||
IMAGEAPP=docker.io/searxng/searxng:2024.12.22-26097f444
|
||||
IMAGEAPP=docker.io/searxng/searxng:2025.1.25-176079977
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -237,9 +237,6 @@ enabled_plugins:
|
||||
# Configuration of the "Hostnames plugin":
|
||||
#
|
||||
hostnames:
|
||||
replace:
|
||||
'(.*\.)?reddit\.com$': 'old.reddit.com'
|
||||
'(.*\.)?redd\.it$': 'old.reddit.com'
|
||||
remove: 'hostnames_remove.yml'
|
||||
|
||||
checker:
|
||||
@ -334,6 +331,33 @@ engines:
|
||||
timeout: 6
|
||||
disabled: true
|
||||
|
||||
- name: alexandria
|
||||
engine: json_engine
|
||||
shortcut: alx
|
||||
categories: general
|
||||
paging: true
|
||||
search_url: https://api.alexandria.org/?a=1&q={query}&p={pageno}
|
||||
results_query: results
|
||||
title_query: title
|
||||
url_query: url
|
||||
content_query: snippet
|
||||
timeout: 1.5
|
||||
disabled: true
|
||||
about:
|
||||
website: https://alexandria.org/
|
||||
official_api_documentation: https://github.com/alexandria-org/alexandria-api/raw/master/README.md
|
||||
use_official_api: true
|
||||
require_api_key: false
|
||||
results: JSON
|
||||
|
||||
# - name: astrophysics data system
|
||||
# engine: astrophysics_data_system
|
||||
# sort: asc
|
||||
# weight: 5
|
||||
# categories: [science]
|
||||
# api_key: your-new-key
|
||||
# shortcut: ads
|
||||
|
||||
- name: alpine linux packages
|
||||
engine: alpinelinux
|
||||
disabled: true
|
||||
@ -1016,6 +1040,11 @@ engines:
|
||||
timeout: 3.0
|
||||
disabled: true
|
||||
|
||||
- name: ipernity
|
||||
engine: ipernity
|
||||
shortcut: ip
|
||||
disabled: true
|
||||
|
||||
- name: jisho
|
||||
engine: jisho
|
||||
shortcut: js
|
||||
@ -1486,6 +1515,11 @@ engines:
|
||||
require_api_key: false
|
||||
results: HTML
|
||||
|
||||
- name: Public Domain Image Archive
|
||||
engine: public_domain_image_archive
|
||||
shortcut: pdia
|
||||
disabled: true
|
||||
|
||||
- name: pubmed
|
||||
engine: pubmed
|
||||
shortcut: pub
|
||||
|
27
generate_hostnames_remove.py
Normal file
27
generate_hostnames_remove.py
Normal file
@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import urllib.request as request
|
||||
import re
|
||||
|
||||
HOSTS = "https://someonewhocares.org/hosts/zero/hosts"
|
||||
OUTPUT = "config/hostnames_remove.yml"
|
||||
|
||||
|
||||
def main():
|
||||
with request.urlopen(HOSTS) as i:
|
||||
with open(OUTPUT, "w+") as o:
|
||||
print(
|
||||
*sorted(
|
||||
[
|
||||
rf"- '(.*\.)?{re.escape(l.split()[1])}$'"
|
||||
for l in i.read().decode("utf-8").split("\n")
|
||||
if l.startswith("0")
|
||||
]
|
||||
),
|
||||
sep="\n",
|
||||
file=o,
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
Loading…
Reference in New Issue
Block a user