.config.sh 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # -*- coding: utf-8; mode: sh -*-
  2. # SPDX-License-Identifier: AGPL-3.0-or-later
  3. # shellcheck shell=bash
  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. PUBLIC_URL="${PUBLIC_URL:-http://$(uname -n)/searx}"
  18. PUBLIC_HOST="${PUBLIC_HOST:-$(echo "$PUBLIC_URL" | sed -e 's/[^/]*\/\/\([^@]*@\)\?\([^:/]*\).*/\2/')}"
  19. # searx.sh
  20. # ---------
  21. SEARX_INTERNAL_URL="${SEARX_INTERNAL_URL:-127.0.0.1:8888}"
  22. # Only change, if you maintain a searx brand in your searx fork
  23. SEARX_DOCS_URL="${SEARX_DOCS_URL:-https://asciimoo.github.io/searx}"
  24. SEARX_GIT_URL="${SEARX_GIT_URL:-https://github.com/asciimoo/searx.git}"
  25. SEARX_GIT_BRANCH="${SEARX_GIT_BRANCH:-master}"
  26. # filtron.sh
  27. # ----------
  28. FILTRON_API="${FILTRON_API:-127.0.0.1:4005}"
  29. FILTRON_LISTEN="${FILTRON_LISTEN:-127.0.0.1:4004}"
  30. FILTRON_TARGET="${FILTRON_TARGET:-127.0.0.1:8888}"
  31. # morty.sh
  32. # --------
  33. # morty listen address
  34. MORTY_LISTEN="${MORTY_LISTEN:-127.0.0.1:3000}"
  35. # system services
  36. # ---------------
  37. # **experimental**: Set SERVICE_USER to run all services by one account, but be
  38. # aware that removing discrete components might conflict!
  39. #
  40. # SERVICE_USER=searx
  41. # Common $HOME folder of the service accounts
  42. SERVICE_HOME_BASE="${SERVICE_HOME_BASE:-/usr/local}"