warnings cleanup

frdel committed Dec 6, 2024 at 11:30 UTC 84346828128d230a39a14d4ad32d14dec9bea8b7
4 files changed +35 -7
docker/run/fs/etc/searxng/limiter.toml new
+33
@@ -0,0 +1,33 @@
1 +[real_ip]
2 +# Number of values to trust for X-Forwarded-For.
3 +x_for = 1
4 +
5 +# The prefix defines the number of leading bits in an address that are compared
6 +# to determine whether or not an address is part of a (client) network.
7 +ipv4_prefix = 32
8 +ipv6_prefix = 48
9 +
10 +[botdetection.ip_limit]
11 +# To get unlimited access in a local network, by default link-local addresses
12 +# (networks) are not monitored by the ip_limit
13 +filter_link_local = false
14 +
15 +# Activate link_token method in the ip_limit method
16 +link_token = false
17 +
18 +[botdetection.ip_lists]
19 +# In the limiter, the ip_lists method has priority over all other methods.
20 +# If an IP is in the pass_ip list, it has unrestricted access and is not
21 +# checked if, for example, the "user agent" suggests a bot (e.g., curl).
22 +block_ip = [
23 + # '93.184.216.34', # Example IPv4 address
24 + # '257.1.1.1', # Invalid IP --> will be ignored, logged in ERROR class
25 +]
26 +pass_ip = [
27 + # '192.168.0.0/16', # IPv4 private network
28 + # 'fe80::/10', # IPv6 link-local; overrides botdetection.ip_limit.filter_link_local
29 +]
30 +
31 +# Activate passlist of (hardcoded) IPs from the SearXNG organization,
32 +# e.g., `check.searx.space`.
33 +pass_searxng_org = true
docker/run/fs/exe/initialize.sh
+1 -1
@@ -15,7 +15,7 @@ chmod 444 /root/.bashrc
15 chmod 444 /root/.profile
16
17 # update package list to save time later
18 -apt-get update &
18 +apt-get update > /dev/null 2>&1 &
19
20 # Start SSH service in background
21 /usr/sbin/sshd -D &
docker/run/fs/ins/install_searxng2.sh
-5
@@ -1,11 +1,6 @@
1 #!/bin/bash
2
3 # clone SearXNG repo
4 -# git clone "https://github.com/searxng/searxng" \
5 -# "/usr/local/searxng/searxng-src"
6 -
7 -# cp -r "/git/searxng" "/usr/local/searxng/searxng-src"
8 -
4 git clone "https://github.com/searxng/searxng" \
5 "/usr/local/searxng/searxng-src"
6
requirements.txt
+1 -1
@@ -19,7 +19,7 @@ openai-whisper==20240930
19 lxml_html_clean==0.3.1
20 markdown==3.7
21 newspaper3k==0.2.8
22 -paramiko==3.4.0
22 +paramiko==3.5.0
23 pypdf==4.3.1
24 python-dotenv==1.0.1
25 sentence-transformers==3.0.1