motsobelal commited on
Commit
6c93e10
·
verified ·
1 Parent(s): 5d8050d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +52 -3
Dockerfile CHANGED
@@ -1,16 +1,22 @@
1
  FROM docker.io/searxng/searxng:latest
2
 
3
- # Set the internal port to match your EXPOSE directive
4
  ENV GRANIAN_PORT="7860"
5
 
6
  # Expose port 7860
7
  EXPOSE 7860
8
 
9
- # Create and copy custom settings with API enabled
10
  COPY <<EOF /etc/searxng/settings.yml
11
  use_default_settings: true
12
 
 
 
 
 
13
  search:
 
 
14
  formats:
15
  - html
16
  - json
@@ -18,5 +24,48 @@ search:
18
  - rss
19
 
20
  server:
21
- secret_key: "your-ultra-secret-key-here"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  EOF
 
1
  FROM docker.io/searxng/searxng:latest
2
 
3
+ # Set the internal port to 7860
4
  ENV GRANIAN_PORT="7860"
5
 
6
  # Expose port 7860
7
  EXPOSE 7860
8
 
9
+ # Create comprehensive settings with all features enabled
10
  COPY <<EOF /etc/searxng/settings.yml
11
  use_default_settings: true
12
 
13
+ general:
14
+ instance_name: "SearXNG"
15
+ enable_metrics: true
16
+
17
  search:
18
+ safe_search: 0
19
+ autocomplete: 'duckduckgo'
20
  formats:
21
  - html
22
  - json
 
24
  - rss
25
 
26
  server:
27
+ secret_key: "11223344"
28
+ limiter: true
29
+ public_instance: false
30
+ image_proxy: true
31
+ method: "POST"
32
+ default_http_headers:
33
+ X-Content-Type-Options: nosniff
34
+ X-Download-Options: noopen
35
+ X-Robots-Tag: noindex, nofollow
36
+ Referrer-Policy: no-referrer
37
+
38
+ ui:
39
+ default_theme: simple
40
+ theme_args:
41
+ simple_style: auto
42
+ results_on_new_tab: false
43
+ query_in_title: false
44
+
45
+ valkey:
46
+ url: false
47
+
48
+ plugins:
49
+ searx.plugins.calculator.SXNGPlugin:
50
+ active: true
51
+ searx.plugins.hash_plugin.SXNGPlugin:
52
+ active: true
53
+ searx.plugins.self_info.SXNGPlugin:
54
+ active: true
55
+ searx.plugins.tracker_url_remover.SXNGPlugin:
56
+ active: true
57
+ searx.plugins.unit_converter.SXNGPlugin:
58
+ active: true
59
+ searx.plugins.ahmia_filter.SXNGPlugin:
60
+ active: true
61
+ searx.plugins.hostnames.SXNGPlugin:
62
+ active: true
63
+ searx.plugins.infinite_scroll.SXNGPlugin:
64
+ active: false
65
+ searx.plugins.oa_doi_rewrite.SXNGPlugin:
66
+ active: false
67
+ searx.plugins.tor_check.SXNGPlugin:
68
+ active: false
69
+ searx.plugins.time_zone.SXNGPlugin:
70
+ active: true
71
  EOF