Spaces:
Running
Running
Evgeniy Hristoforu
commited on
Commit
·
731a1ef
1
Parent(s):
7de293c
init
Browse files- Dockerfile +3 -0
- README.md +6 -7
- searxng/limiter.toml +40 -0
- searxng/settings.yml +78 -0
Dockerfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ehristoforu/ruserve:latest
|
| 2 |
+
RUN mkdir -p /etc/searxng && chmod 777 /etc/searxng
|
| 3 |
+
COPY ./searxng /etc/searxng
|
README.md
CHANGED
|
@@ -1,10 +1,9 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Searxng
|
| 3 |
+
emoji: 😻
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: indigo
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
+
app_port: 8080
|
| 9 |
+
---
|
|
|
searxng/limiter.toml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[real_ip]
|
| 2 |
+
|
| 3 |
+
# Number of values to trust for X-Forwarded-For.
|
| 4 |
+
|
| 5 |
+
x_for = 1
|
| 6 |
+
|
| 7 |
+
# The prefix defines the number of leading bits in an address that are compared
|
| 8 |
+
# to determine whether or not an address is part of a (client) network.
|
| 9 |
+
|
| 10 |
+
ipv4_prefix = 32
|
| 11 |
+
ipv6_prefix = 48
|
| 12 |
+
|
| 13 |
+
[botdetection.ip_limit]
|
| 14 |
+
|
| 15 |
+
# To get unlimited access in a local network, by default link-local addresses
|
| 16 |
+
# (networks) are not monitored by the ip_limit
|
| 17 |
+
filter_link_local = false
|
| 18 |
+
|
| 19 |
+
# activate link_token method in the ip_limit method
|
| 20 |
+
link_token = false
|
| 21 |
+
|
| 22 |
+
[botdetection.ip_lists]
|
| 23 |
+
|
| 24 |
+
# In the limiter, the ip_lists method has priority over all other methods -> if
|
| 25 |
+
# an IP is in the pass_ip list, it has unrestricted access and it is also not
|
| 26 |
+
# checked if e.g. the "user agent" suggests a bot (e.g. curl).
|
| 27 |
+
|
| 28 |
+
block_ip = [
|
| 29 |
+
# '93.184.216.34', # IPv4 of example.org
|
| 30 |
+
# '257.1.1.1', # invalid IP --> will be ignored, logged in ERROR class
|
| 31 |
+
]
|
| 32 |
+
|
| 33 |
+
pass_ip = [
|
| 34 |
+
# '192.168.0.0/16', # IPv4 private network
|
| 35 |
+
# 'fe80::/10' # IPv6 linklocal / wins over botdetection.ip_limit.filter_link_local
|
| 36 |
+
]
|
| 37 |
+
|
| 38 |
+
# Activate passlist of (hardcoded) IPs from the SearXNG organization,
|
| 39 |
+
# e.g. `check.searx.space`.
|
| 40 |
+
pass_searxng_org = true
|
searxng/settings.yml
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
use_default_settings: true
|
| 2 |
+
|
| 3 |
+
search:
|
| 4 |
+
default_lang: "ru"
|
| 5 |
+
favicon_resolver: "google"
|
| 6 |
+
|
| 7 |
+
server:
|
| 8 |
+
port: 8080
|
| 9 |
+
bind_address: "0.0.0.0"
|
| 10 |
+
base_url: https://so.787a68.de/
|
| 11 |
+
limiter: false
|
| 12 |
+
http_protocol_version: "1.1"
|
| 13 |
+
secret_key: "K7bX9pT3WJ6mN2YV8QrL0aB5C1E4G9"
|
| 14 |
+
method: "GET"
|
| 15 |
+
|
| 16 |
+
ui:
|
| 17 |
+
query_in_title: true
|
| 18 |
+
results_on_new_tab: true
|
| 19 |
+
|
| 20 |
+
plugins:
|
| 21 |
+
searx.plugins.hash_plugin.SXNGPlugin:
|
| 22 |
+
active: false
|
| 23 |
+
searx.plugins.self_info.SXNGPlugin:
|
| 24 |
+
active: false
|
| 25 |
+
searx.plugins.tracker_url_remover.SXNGPlugin:
|
| 26 |
+
active: true
|
| 27 |
+
|
| 28 |
+
hostnames:
|
| 29 |
+
remove:
|
| 30 |
+
- '(.*\.)?361shipin.com$'
|
| 31 |
+
- '(.*\.)?baijiahao.baidu.com$'
|
| 32 |
+
- '(.*\.)?boce.com$'
|
| 33 |
+
- '(.*\.)?cdsy.xyz$'
|
| 34 |
+
- '(.*\.)?cloud.baidu.com$'
|
| 35 |
+
- '(.*\.)?codeantenna.com$'
|
| 36 |
+
- '(.*\.)?codeday.me$'
|
| 37 |
+
- '(.*\.)?codenong.com$'
|
| 38 |
+
- '(.*\.)?csdn.net$'
|
| 39 |
+
- '(.*\.)?douyin.com$'
|
| 40 |
+
- '(.*\.)?gebi1.com$'
|
| 41 |
+
- '(.*\.)?helplib.com$'
|
| 42 |
+
- '(.*\.)?iteye.com$'
|
| 43 |
+
- '(.*\.)?jdon.com$'
|
| 44 |
+
- '(.*\.)?jianshu.com$'
|
| 45 |
+
- '(.*\.)?jishuwen.com$'
|
| 46 |
+
- '(.*\.)?javajgs.com$'
|
| 47 |
+
- '(.*\.)?juejin.cn$'
|
| 48 |
+
- '(.*\.)?kknews.cc$'
|
| 49 |
+
- '(.*\.)?modb.pro$'
|
| 50 |
+
- '(.*\.)?nhooo.com$'
|
| 51 |
+
- '(.*\.)?php.cn$'
|
| 52 |
+
- '(.*\.)?proginn.com$'
|
| 53 |
+
- '(.*\.)?voidcc.com$'
|
| 54 |
+
- '(.*\.)?voidcn.com$'
|
| 55 |
+
- '(.*\.)?volcengine.com$'
|
| 56 |
+
- '(.*\.)?w3cplus.com$'
|
| 57 |
+
- '(.*\.)?wapiknow.baidu.com$'
|
| 58 |
+
- '(.*\.)?worktile.com$'
|
| 59 |
+
- '(.*\.)?xuewangzhan.net$'
|
| 60 |
+
- '(.*\.)?yht7.com$'
|
| 61 |
+
- '(.*\.)?yiibai.com$'
|
| 62 |
+
- '(.*\.)?51cto.com$'
|
| 63 |
+
- '(.*\.)?zhidao.baidu.com$'
|
| 64 |
+
- '(.*\.)?zhihuclub.com$'
|
| 65 |
+
|
| 66 |
+
engines:
|
| 67 |
+
- name: bilibili
|
| 68 |
+
disabled: false
|
| 69 |
+
- name: sogou wechat
|
| 70 |
+
disabled: false
|
| 71 |
+
- name: startpage
|
| 72 |
+
disabled: true
|
| 73 |
+
- name: startpage news
|
| 74 |
+
disabled: true
|
| 75 |
+
- name: startpage images
|
| 76 |
+
disabled: true
|
| 77 |
+
- name: wikidata
|
| 78 |
+
disabled: true
|