.config.sh 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # -*- coding: utf-8; mode: sh -*-
  2. # SPDX-License-Identifier: AGPL-3.0-or-later
  3. # shellcheck shell=bash disable=SC2034
  4. #
  5. # This environment is used by ./utils scripts like filtron.sh or searx.sh. The
  6. # default values are *most flexible* and *best maintained*, you normally not
  7. # need to change the defaults (except PUBLIC_URL).
  8. #
  9. # Before you change any value here you have to uninstall any previous
  10. # installation. Further is it recommended to backup your changes simply by
  11. # adding them to you local brand (git branch)::
  12. #
  13. # git add .config
  14. #
  15. # Compare your settings here with file .config.mk used by the Makefile targets.
  16. # The public URL of the searx instance: PUBLIC_URL="https://mydomain.xy/searx"
  17. # The default is taken from the Makefile environment (SEARX_URL).
  18. PUBLIC_URL="${SEARX_URL:-http://$(uname -n)/searx}"
  19. PUBLIC_HOST="${PUBLIC_HOST:-$(echo "$PUBLIC_URL" | sed -e 's/[^/]*\/\/\([^@]*@\)\?\([^:/]*\).*/\2/')}"
  20. # searx.sh
  21. # ---------
  22. SEARX_INTERNAL_URL="${SEARX_INTERNAL_URL:-127.0.0.1:8888}"
  23. # Only change, if you maintain a searx brand in your searx fork. The default is
  24. # taken from the Makefile environment (DOCS_URL, GIT_URL).
  25. SEARX_DOCS_URL="${DOCS_URL:-https://asciimoo.github.io/searx}"
  26. SEARX_GIT_URL="${GIT_URL:-https://github.com/asciimoo/searx.git}"
  27. SEARX_GIT_BRANCH="${SEARX_GIT_BRANCH:-master}"
  28. # filtron.sh
  29. # ----------
  30. FILTRON_API="${FILTRON_API:-127.0.0.1:4005}"
  31. FILTRON_LISTEN="${FILTRON_LISTEN:-127.0.0.1:4004}"
  32. FILTRON_TARGET="${FILTRON_TARGET:-127.0.0.1:8888}"
  33. # morty.sh
  34. # --------
  35. # morty listen address
  36. MORTY_LISTEN="${MORTY_LISTEN:-127.0.0.1:3000}"
  37. # system services
  38. # ---------------
  39. # **experimental**: Set SERVICE_USER to run all services by one account, but be
  40. # aware that removing discrete components might conflict!
  41. #
  42. # SERVICE_USER=searx
  43. # Common $HOME folder of the service accounts
  44. SERVICE_HOME_BASE="${SERVICE_HOME_BASE:-/usr/local}"