Compare commits
6 Commits
e13de96930
...
156770b955
Author | SHA1 | Date | |
---|---|---|---|
156770b955 | |||
8e0bd6e82f | |||
3e178d62fc | |||
83b79b86b9 | |||
e5a2f16346 | |||
f2f8d479bb |
2
.env
2
.env
@ -1,2 +1,2 @@
|
|||||||
PROD_URL=searx.gmoker.com
|
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":
|
# Configuration of the "Hostnames plugin":
|
||||||
#
|
#
|
||||||
hostnames:
|
hostnames:
|
||||||
replace:
|
|
||||||
'(.*\.)?reddit\.com$': 'old.reddit.com'
|
|
||||||
'(.*\.)?redd\.it$': 'old.reddit.com'
|
|
||||||
remove: 'hostnames_remove.yml'
|
remove: 'hostnames_remove.yml'
|
||||||
|
|
||||||
checker:
|
checker:
|
||||||
@ -334,6 +331,33 @@ engines:
|
|||||||
timeout: 6
|
timeout: 6
|
||||||
disabled: true
|
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
|
- name: alpine linux packages
|
||||||
engine: alpinelinux
|
engine: alpinelinux
|
||||||
disabled: true
|
disabled: true
|
||||||
@ -1016,6 +1040,11 @@ engines:
|
|||||||
timeout: 3.0
|
timeout: 3.0
|
||||||
disabled: true
|
disabled: true
|
||||||
|
|
||||||
|
- name: ipernity
|
||||||
|
engine: ipernity
|
||||||
|
shortcut: ip
|
||||||
|
disabled: true
|
||||||
|
|
||||||
- name: jisho
|
- name: jisho
|
||||||
engine: jisho
|
engine: jisho
|
||||||
shortcut: js
|
shortcut: js
|
||||||
@ -1486,6 +1515,11 @@ engines:
|
|||||||
require_api_key: false
|
require_api_key: false
|
||||||
results: HTML
|
results: HTML
|
||||||
|
|
||||||
|
- name: Public Domain Image Archive
|
||||||
|
engine: public_domain_image_archive
|
||||||
|
shortcut: pdia
|
||||||
|
disabled: true
|
||||||
|
|
||||||
- name: pubmed
|
- name: pubmed
|
||||||
engine: pubmed
|
engine: pubmed
|
||||||
shortcut: pub
|
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