ACRoot commited on
Commit
e9ba254
Β·
1 Parent(s): eb69a35

Add application file

Browse files
Files changed (5) hide show
  1. Dockerfile +4 -0
  2. README.md +4 -2
  3. searxng/limiter.toml +3 -0
  4. searxng/settings.yml +16 -0
  5. searxng/uwsgi.ini +50 -0
Dockerfile ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ FROM searxng/searxng:latest
2
+ RUN mkdir /etc/searxng \
3
+ && chmod 777 /etc/searxng
4
+ COPY ./searxng /etc/searxng
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
  title: SearXNG
3
- emoji: πŸ”₯
4
- colorFrom: blue
5
  colorTo: red
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: gray
5
  colorTo: red
6
  sdk: docker
7
  pinned: false
8
+ license: mit
9
+ app_port: 8080
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
searxng/limiter.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ [botdetection.ip_limit]
2
+ # activate link_token method in the ip_limit method
3
+ link_token = true
searxng/settings.yml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # see https://docs.searxng.org/admin/settings/settings.html#settings-use-default-settings
2
+ use_default_settings: true
3
+ search:
4
+ autocomplete: "duckduckgo"
5
+ server:
6
+ # base_url is defined in the SEARXNG_BASE_URL environment variable, see .env and docker-compose.yml
7
+ secret_key: "%(ENV_SEARXNG_SECRET)s" # change this!
8
+ limiter: true # can be disabled for a private instance
9
+ image_proxy: true
10
+ ui:
11
+ static_use_hash: true
12
+ engines:
13
+ - name: pixiv
14
+ disabled: false
15
+ pixiv_image_proxies:
16
+ - https://pximg.cocomi.eu.org
searxng/uwsgi.ini ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [uwsgi]
2
+ # Who will run the code
3
+ uid = searxng
4
+ gid = searxng
5
+
6
+ # Number of workers (usually CPU count)
7
+ # default value: %k (= number of CPU core, see Dockerfile)
8
+ workers = %k
9
+
10
+ # Number of threads per worker
11
+ # default value: 4 (see Dockerfile)
12
+ threads = 4
13
+
14
+ # The right granted on the created socket
15
+ chmod-socket = 666
16
+
17
+ # Plugin to use and interpreter config
18
+ single-interpreter = true
19
+ master = true
20
+ plugin = python3
21
+ lazy-apps = true
22
+ enable-threads = 4
23
+
24
+ # Module to import
25
+ module = searx.webapp
26
+
27
+ # Virtualenv and python path
28
+ pythonpath = /usr/local/searxng/
29
+ chdir = /usr/local/searxng/searx/
30
+
31
+ # automatically set processes name to something meaningful
32
+ auto-procname = true
33
+
34
+ # Disable request logging for privacy
35
+ disable-logging = true
36
+ log-5xx = true
37
+
38
+ # Set the max size of a request (request-body excluded)
39
+ buffer-size = 8192
40
+
41
+ # No keep alive
42
+ # See https://github.com/searx/searx-docker/issues/24
43
+ add-header = Connection: close
44
+
45
+ # uwsgi serves the static files
46
+ static-map = /static=/usr/local/searxng/searx/static
47
+ # expires set to one day
48
+ static-expires = /* 86400
49
+ static-gzip-all = True
50
+ offload-threads = 4