.config.sh 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. # The public URL of the searx instance: PUBLIC_URL="https://mydomain.xy/searx"
  15. # The default is taken from ./utils/brand.env.
  16. PUBLIC_URL="${SEARX_URL}"
  17. if [[ ${PUBLIC_URL} == "https://searx.me" ]]; then
  18. # hint: Linux containers do not have DNS entries, lets use IPs
  19. PUBLIC_URL="http://$(primary_ip)/searx"
  20. fi
  21. # searx.sh
  22. # ---------
  23. # SEARX_INTERNAL_URL="127.0.0.1:8888"
  24. # SEARX_SETTINGS_TEMPLATE="${REPO_ROOT}/utils/templates/etc/searx/use_default_settings.yml"
  25. # Only change, if you maintain a searx brand in your searx fork (GIT_URL) which
  26. # is not hold by branch 'master'. The branch has to be a local branch, in the
  27. # repository from which you install (which is most often the case). If you want
  28. # to install branch 'foo', don't forget to run 'git branch foo origin/foo' once.
  29. # GIT_BRANCH="${GIT_BRANCH:-master}"
  30. # filtron.sh
  31. # ----------
  32. # FILTRON_API="127.0.0.1:4005"
  33. # FILTRON_LISTEN="127.0.0.1:4004"
  34. # FILTRON_TARGET="127.0.0.1:8888"
  35. # morty.sh
  36. # --------
  37. # morty listen address
  38. # MORTY_LISTEN="127.0.0.1:3000"
  39. # PUBLIC_URL_PATH_MORTY="/morty/"
  40. # system services
  41. # ---------------
  42. # Common $HOME folder of the service accounts
  43. # SERVICE_HOME_BASE="/usr/local"
  44. # **experimental**: Set SERVICE_USER to run all services by one account, but be
  45. # aware that removing discrete components might conflict!
  46. # SERVICE_USER=searx