aboutsummaryrefslogtreecommitdiff
path: root/data/searxng
diff options
context:
space:
mode:
Diffstat (limited to 'data/searxng')
-rw-r--r--data/searxng/searxng.conf48
-rw-r--r--data/searxng/settings.yml74
-rw-r--r--data/searxng/uwsgi.ini50
3 files changed, 172 insertions, 0 deletions
diff --git a/data/searxng/searxng.conf b/data/searxng/searxng.conf
new file mode 100644
index 0000000..7102d60
--- /dev/null
+++ b/data/searxng/searxng.conf
@@ -0,0 +1,48 @@
1server {
2
3 listen 443 ssl;
4 ssl_certificate /etc/letsencrypt/live/chudnick.com/fullchain.pem;
5 ssl_certificate_key /etc/letsencrypt/live/chudnick.com/privkey.pem;
6 ssl_stapling on;
7 ssl_stapling_verify on;
8
9 # Your server name
10 server_name searxng.chudnick.com;
11
12 # If you want to log user activity, comment these
13 access_log /dev/null;
14 error_log /dev/null;
15
16 # Security Headers
17 add_header X-Frame-Options "SAMEORIGIN";
18 add_header X-XSS-Protection "1; mode=block";
19 add_header X-Content-Type-Options "nosniff";
20
21 location = / {
22 return 302 https://$host/searxng;
23 }
24
25 # Searx reverse proxy
26 location /searxng {
27 proxy_pass http://127.0.0.1:8080;
28
29 proxy_set_header Host $host;
30 proxy_set_header Connection $http_connection;
31
32 # see flaskfix.py
33 proxy_set_header X-Scheme $scheme;
34 proxy_set_header X-Script-Name /searxng;
35
36 # see limiter.py
37 proxy_set_header X-Real-IP $remote_addr;
38 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
39
40 }
41}
42
43server {
44 listen 80;
45 listen [::]:80;
46 server_name searxng.chudnick.com;
47 return 301 https://$host$request_uri;
48}
diff --git a/data/searxng/settings.yml b/data/searxng/settings.yml
new file mode 100644
index 0000000..6ff425f
--- /dev/null
+++ b/data/searxng/settings.yml
@@ -0,0 +1,74 @@
1# SearXNG settings, before editing this file read:
2#
3# https://docs.searxng.org/admin/engines/settings.html
4
5use_default_settings:
6 engines:
7 remove:
8 - 1337x
9 - btdigg
10 - kickass
11 - nyaa
12 - piratebay
13 - solidtorrents
14 - tokyotoshokan
15 - z-library
16 - google
17
18general:
19 debug: false
20 instance_name: "SearXNG"
21
22search:
23 safe_search: 0
24 autocomplete: ''
25 default_lang: ''
26 formats:
27 - html
28
29server:
30 base_url: searxng.chudnick.com
31 secret_key: "changeme" # change this!
32 image_proxy: true
33 limiter: false
34 http_protocol_version: "1.1"
35 default_http_headers:
36 X-Content-Type-Options: nosniff
37 X-XSS-Protection: 1; mode=block
38 X-Download-Options: noopen
39 X-Robots-Tag: noindex, nofollow
40 Referrer-Policy: no-referrer
41
42redis:
43 url: redis://redis:6379/0
44
45ui:
46 static_use_hash: true
47 results_on_new_tab: false
48 default_theme: simple
49 theme_args:
50 simple_style: dark
51
52enabled_plugins:
53 - 'Hash plugin'
54 - 'Search on category select'
55 - 'Self Informations'
56 - 'Tracker URL remover'
57 - 'Ahmia blacklist'
58
59engines:
60 - name: free software directory
61 disabled: false
62
63 - name: gitlab
64 disabled: false
65
66 - name: wiby
67 disabled: true
68
69 - name: hoogle
70 disabled: true
71
72 - name: mankier
73 disabled: true
74
diff --git a/data/searxng/uwsgi.ini b/data/searxng/uwsgi.ini
new file mode 100644
index 0000000..3aab8dd
--- /dev/null
+++ b/data/searxng/uwsgi.ini
@@ -0,0 +1,50 @@
1[uwsgi]
2# Who will run the code
3uid = searxng
4gid = searxng
5
6# Number of workers (usually CPU count)
7workers = 1
8threads = 1
9
10# The right granted on the created socket
11chmod-socket = 666
12
13# Plugin to use and interpreter config
14single-interpreter = true
15master = true
16plugin = python3
17lazy-apps = true
18enable-threads = true
19
20# Module to import
21module = searx.webapp
22
23# Virtualenv and python path
24pythonpath = /usr/local/searxng/
25chdir = /usr/local/searxng/searx/
26
27# automatically set processes name to something meaningful
28auto-procname = true
29
30# Disable request logging for privacy
31disable-logging = true
32log-5xx = true
33
34# Set the max size of a request (request-body excluded)
35buffer-size = 8192
36
37# No keep alive
38# See https://github.com/searx/searx-docker/issues/24
39add-header = Connection: close
40
41# uwsgi serves the static files
42# expires set to one year since there are hashes
43static-map = /static=/usr/local/searxng/searx/static
44static-expires = /* 31557600
45static-gzip-all = True
46offload-threads = %k
47
48# Cache
49cache2 = name=searxngcache,items=2000,blocks=2000,blocksize=4096,bitmap=1
50