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