Compare commits

..

1 Commits
devel ... prod

Author SHA1 Message Date
e13de96930 feat: Dan Pollock’s hosts file (#5) (#6)
All checks were successful
/ deploy (push) Successful in 6s
Reviewed-on: #5
Reviewed-on: #6
2024-12-23 03:06:06 +00:00
4 changed files with 2178 additions and 5627 deletions

2
.env
View File

@ -1,2 +1,2 @@
PROD_URL=searx.gmoker.com
IMAGEAPP=docker.io/searxng/searxng:2024.12.25-73e395c8c
IMAGEAPP=docker.io/searxng/searxng:2024.12.22-26097f444

File diff suppressed because it is too large Load Diff

View File

@ -334,25 +334,6 @@ 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: alpine linux packages
engine: alpinelinux
disabled: true

View File

@ -1,27 +0,0 @@
#!/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()