.config.sh 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. # Only change, if you maintain a searx brand in your searx fork.
  25. # GIT_BRANCH="${GIT_BRANCH:-master}"
  26. # filtron.sh
  27. # ----------
  28. # FILTRON_API="127.0.0.1:4005"
  29. # FILTRON_LISTEN="127.0.0.1:4004"
  30. # FILTRON_TARGET="127.0.0.1:8888"
  31. # morty.sh
  32. # --------
  33. # morty listen address
  34. # MORTY_LISTEN="127.0.0.1:3000"
  35. # PUBLIC_URL_PATH_MORTY="/morty/"
  36. # system services
  37. # ---------------
  38. # Common $HOME folder of the service accounts
  39. # SERVICE_HOME_BASE="/usr/local"
  40. # **experimental**: Set SERVICE_USER to run all services by one account, but be
  41. # aware that removing discrete components might conflict!
  42. # SERVICE_USER=searx