blob: 772cda8f975e8e58b0593a958fcc2e17a4ce4bfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
Upstream installation guide:
https://asciimoo.github.io/searx/dev/install/installation.html
The Debian setup varies at some points. Here is the most simple setup that
starts searx in the foreground without daemonization:
1. Copy the default configuration file
$ mkdir /etc/searx
$ gzip --to-stdout --decompress /usr/share/doc/searx/examples/settings.yml.gz > /etc/searx/settings.yml
2. Generate a secret key
$ sed -i -e "s/ultrasecretkey/$(openssl rand -hex 16)/g" /etc/searx/settings.yml
3. Start searx
$ searx-run
4. Try it out
$ sensible-browser 127.0.0.1:8888
It follows a step by step instruction of how to setup searx as a uwsgi service
behind nginx:
1. Copy and symlink the nginx configuration
$ cp /usr/share/doc/searx/examples/nginx/sites-available/searx /etc/nginx/sites-available
$ ln -s ../sites-available/searx /etc/nginx/sites-enabled/searx
2. Copy and symlink the uwsgi configuration
$ cp /usr/share/doc/searx/examples/uwsgi/apps-available/searx.ini /etc/uwsgi/apps-available
$ ln -s ../apps-available/searx.ini /etc/uwsgi/apps-enabled/searx.ini
3. Copy the default configuration file
$ mkdir /etc/searx
$ gzip --to-stdout --decompress /usr/share/doc/searx/examples/settings.yml.gz > /etc/searx/settings.yml
4. Generate a secret key
$ sed -i -e "s/ultrasecretkey/$(openssl rand -hex 16)/g" /etc/searx/settings.yml
5. Restart nginx and uwsgi
$ systemctl restart nginx
$ systemctl restart uwsgi
The differences to the upstream instructions are:
- the uwsgi user and group are www-data
- python3 is used instead of python2
- no virtualenv is used
- uwsgi pythonpath and chdir are Debian-specific
- no root directive is set in nginx configuration
|