dot_config 343 B

123456789
  1. # -*- coding: utf-8; mode: sh -*-
  2. # SPDX-License-Identifier: AGPL-3.0-or-later
  3. #
  4. # environment used by utils scripts like filtron.sh or searx.sh
  5. #
  6. # the public URL of the searx instance
  7. PUBLIC_URL="${PUBLIC_URL:-http://$(uname -n)/searx}"
  8. PUBLIC_HOST="${PUBLIC_HOST:-$(echo "$PUBLIC_URL" | sed -e 's/[^/]*\/\/\([^@]*@\)\?\([^:/]*\).*/\2/')}"