summaryrefslogtreecommitdiff
path: root/docs/build-templates
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2022-07-30 13:45:12 +0200
committerGitHub <noreply@github.com>2022-07-30 13:45:12 +0200
commit645c2a2ca1cf40ab9429366ac70c69d1ac8fd004 (patch)
tree943270e4998815d360713e21615082293300c877 /docs/build-templates
parent0cf5310933ee4f6bff4a941f7296686bd671671f (diff)
parente5323b8aa285d61bf011bbe7ca8f02818f19ed79 (diff)
Merge pull request #1332 from return42/searxng-install
Upgrade installation scripts and documentation
Diffstat (limited to 'docs/build-templates')
-rw-r--r--docs/build-templates/searxng.rst (renamed from docs/build-templates/searx.rst)40
1 files changed, 17 insertions, 23 deletions
diff --git a/docs/build-templates/searx.rst b/docs/build-templates/searxng.rst
index 626cce6bd..14b385468 100644
--- a/docs/build-templates/searx.rst
+++ b/docs/build-templates/searxng.rst
@@ -1,4 +1,4 @@
-.. template evaluated by: ./utils/searx.sh docs
+.. template evaluated by: ./utils/searxng.sh searxng.doc.rst
.. hint: all dollar-names are variables, dollar sign itself is quoted by: \\$
.. START distro-packages
@@ -65,7 +65,8 @@ ${fedora_build}
$ sudo -H useradd --shell /bin/bash --system \\
--home-dir \"$SERVICE_HOME\" \\
- --comment 'Privacy-respecting metasearch engine' $SERVICE_USER
+ --comment 'Privacy-respecting metasearch engine' \\
+ $SERVICE_USER
$ sudo -H mkdir \"$SERVICE_HOME\"
$ sudo -H chown -R \"$SERVICE_GROUP:$SERVICE_GROUP\" \"$SERVICE_HOME\"
@@ -81,7 +82,8 @@ ${fedora_build}
.. code-block:: sh
$ sudo -H -u ${SERVICE_USER} -i
- (${SERVICE_USER})$ git clone \"$GIT_URL\" \"$SEARX_SRC\"
+ (${SERVICE_USER})$ git clone \"$GIT_URL\" \\
+ \"$SEARXNG_SRC\"
.. END clone searxng
@@ -93,8 +95,9 @@ ${fedora_build}
.. code-block:: sh
- (${SERVICE_USER})$ python3 -m venv \"${SEARX_PYENV}\"
- (${SERVICE_USER})$ echo \". ${SEARX_PYENV}/bin/activate\" >> \"$SERVICE_HOME/.profile\"
+ (${SERVICE_USER})$ python3 -m venv \"${SEARXNG_PYENV}\"
+ (${SERVICE_USER})$ echo \". ${SEARXNG_PYENV}/bin/activate\" \\
+ >> \"$SERVICE_HOME/.profile\"
.. END create virtualenv
@@ -109,7 +112,7 @@ ${fedora_build}
$ sudo -H -u ${SERVICE_USER} -i
(${SERVICE_USER})$ command -v python && python --version
- $SEARX_PYENV/bin/python
+ $SEARXNG_PYENV/bin/python
Python 3.8.1
# update pip's boilerplate ..
@@ -119,7 +122,7 @@ ${fedora_build}
pip install -U pyyaml
# jump to SearXNG's working tree and install SearXNG into virtualenv
- (${SERVICE_USER})$ cd \"$SEARX_SRC\"
+ (${SERVICE_USER})$ cd \"$SEARXNG_SRC\"
(${SERVICE_USER})$ pip install -e .
@@ -134,24 +137,15 @@ ${fedora_build}
.. code-block:: sh
$ sudo -H mkdir -p \"$(dirname ${SEARXNG_SETTINGS_PATH})\"
- $ sudo -H cp \"$SEARX_SRC/utils/templates/etc/searxng/settings.yml\" \\
+ $ sudo -H cp \"$SEARXNG_SRC/utils/templates/etc/searxng/settings.yml\" \\
\"${SEARXNG_SETTINGS_PATH}\"
- .. group-tab:: searx/settings.yml
-
- .. code-block:: sh
-
- $ sudo -H mkdir -p \"$(dirname ${SEARXNG_SETTINGS_PATH})\"
- $ sudo -H cp \"$SEARX_SRC/searx/settings.yml\" \\
- \"${SEARXNG_SETTINGS_PATH}\"
-
-.. tabs::
-
.. group-tab:: minimal setup
.. code-block:: sh
- $ sudo -H sed -i -e \"s/ultrasecretkey/\$(openssl rand -hex 16)/g\" \"$SEARXNG_SETTINGS_PATH\"
+ $ sudo -H sed -i -e \"s/ultrasecretkey/\$(openssl rand -hex 16)/g\" \\
+ \"$SEARXNG_SETTINGS_PATH\"
.. END searxng config
@@ -168,14 +162,14 @@ ${fedora_build}
# start webapp
$ sudo -H -u ${SERVICE_USER} -i
- (${SERVICE_USER})$ cd ${SEARX_SRC}
+ (${SERVICE_USER})$ cd ${SEARXNG_SRC}
(${SERVICE_USER})$ export SEARXNG_SETTINGS_PATH=\"${SEARXNG_SETTINGS_PATH}\"
(${SERVICE_USER})$ python searx/webapp.py
# disable debug
$ sudo -H sed -i -e \"s/debug : True/debug : False/g\" \"$SEARXNG_SETTINGS_PATH\"
-Open WEB browser and visit http://$SEARX_INTERNAL_HTTP . If you are inside a
+Open WEB browser and visit http://$SEARXNG_INTERNAL_HTTP . If you are inside a
container or in a script, test with curl:
.. tabs::
@@ -184,13 +178,13 @@ container or in a script, test with curl:
.. code-block:: sh
- $ xdg-open http://$SEARX_INTERNAL_HTTP
+ $ xdg-open http://$SEARXNG_INTERNAL_HTTP
.. group-tab:: curl
.. code-block:: none
- $ curl --location --verbose --head --insecure $SEARX_INTERNAL_HTTP
+ $ curl --location --verbose --head --insecure $SEARXNG_INTERNAL_HTTP
* Trying 127.0.0.1:8888...
* TCP_NODELAY set