summaryrefslogtreecommitdiff
path: root/docs/admin/installation-searxng.rst
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2021-11-19 11:46:29 +0100
committerGitHub <noreply@github.com>2021-11-19 11:46:29 +0100
commite82e37ce6dffe2796b0fae63d893ad637c2be37b (patch)
tree49689668e8de24b0a2d244b227467da4db5be22d /docs/admin/installation-searxng.rst
parent55737a219b0c91882a7d512312cc8f545108f8e8 (diff)
parent1dae0c0be09d5c9e287bdea6aa5bf7ec4f4782ec (diff)
downloadsearxng-e82e37ce6dffe2796b0fae63d893ad637c2be37b.tar.gz
searxng-e82e37ce6dffe2796b0fae63d893ad637c2be37b.zip
Merge pull request #515 from return42/doc-theme
Various modification of the documentation and the theme sphinx-theme
Diffstat (limited to 'docs/admin/installation-searxng.rst')
-rw-r--r--docs/admin/installation-searxng.rst120
1 files changed, 120 insertions, 0 deletions
diff --git a/docs/admin/installation-searxng.rst b/docs/admin/installation-searxng.rst
new file mode 100644
index 000000000..b14139310
--- /dev/null
+++ b/docs/admin/installation-searxng.rst
@@ -0,0 +1,120 @@
+.. _installation basic:
+
+=========================
+Step by step installation
+=========================
+
+.. contents:: Contents
+ :depth: 2
+ :local:
+ :backlinks: entry
+
+Step by step installation with virtualenv. For Ubuntu, be sure to have enable
+universe repository.
+
+.. _install packages:
+
+Install packages
+================
+
+.. kernel-include:: $DOCS_BUILD/includes/searx.rst
+ :start-after: START distro-packages
+ :end-before: END distro-packages
+
+.. hint::
+
+ This installs also the packages needed by :ref:`searxng uwsgi`
+
+.. _create searxng user:
+
+Create user
+===========
+
+.. kernel-include:: $DOCS_BUILD/includes/searx.rst
+ :start-after: START create user
+ :end-before: END create user
+
+.. _searx-src:
+
+Install SearXNG & dependencies
+==============================
+
+Start a interactive shell from new created user and clone searx:
+
+.. kernel-include:: $DOCS_BUILD/includes/searx.rst
+ :start-after: START clone searxng
+ :end-before: END clone searxng
+
+In the same shell create *virtualenv*:
+
+.. kernel-include:: $DOCS_BUILD/includes/searx.rst
+ :start-after: START create virtualenv
+ :end-before: END create virtualenv
+
+To install searx's dependencies, exit the SearXNG *bash* session you opened above
+and restart a new. Before install, first check if your *virtualenv* was sourced
+from the login (*~/.profile*):
+
+.. kernel-include:: $DOCS_BUILD/includes/searx.rst
+ :start-after: START manage.sh update_packages
+ :end-before: END manage.sh update_packages
+
+.. tip::
+
+ Open a second terminal for the configuration tasks and leave the ``(searx)$``
+ terminal open for the tasks below.
+
+
+.. _use_default_settings.yml:
+
+Configuration
+=============
+
+.. sidebar:: ``use_default_settings: True``
+
+ - :ref:`settings global`
+ - :ref:`settings location`
+ - :ref:`settings use_default_settings`
+ - :origin:`/etc/searxng/settings.yml <utils/templates/etc/searxng/settings.yml>`
+
+To create a initial ``/etc/searxng/settings.yml`` you can start with a copy of
+the file :origin:`utils/templates/etc/searxng/settings.yml`. This setup
+:ref:`use default settings <settings use_default_settings>` from
+:origin:`searx/settings.yml`.
+
+For a *minimal setup*, configure like shown below – replace ``searx@$(uname
+-n)`` with a name of your choice, set ``ultrasecretkey`` -- *and/or* edit
+``/etc/searxng/settings.yml`` to your needs.
+
+.. kernel-include:: $DOCS_BUILD/includes/searx.rst
+ :start-after: START searxng config
+ :end-before: END searxng config
+
+.. tabs::
+
+ .. group-tab:: Use default settings
+
+ .. literalinclude:: ../../utils/templates/etc/searxng/settings.yml
+ :language: yaml
+
+ .. group-tab:: searx/settings.yml
+
+ .. literalinclude:: ../../searx/settings.yml
+ :language: yaml
+
+
+Check
+=====
+
+To check your SearXNG setup, optional enable debugging and start the *webapp*.
+SearXNG looks at the exported environment ``$SEARXNG_SETTINGS_PATH`` for a
+configuration file.
+
+.. kernel-include:: $DOCS_BUILD/includes/searx.rst
+ :start-after: START check searxng installation
+ :end-before: END check searxng installation
+
+If everything works fine, hit ``[CTRL-C]`` to stop the *webapp* and disable the
+debug option in ``settings.yml``. You can now exit SearXNG user bash (enter exit
+command twice). At this point SearXNG is not demonized; uwsgi allows this.
+