summaryrefslogtreecommitdiff
path: root/.config.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-02-04 10:43:48 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2020-02-04 10:43:48 +0100
commit8ca86f46d3dfd81a69d2c2d1515bb163f327826c (patch)
treec6ede1245336aed8a65bb5cadbd3ccccd9d2aac2 /.config.sh
parent79e1f837ef7e7c402fd6e9dbb167aac695f2aee7 (diff)
.config.sh: wrap up to use environment from Makefile as best defaults
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to '.config.sh')
-rw-r--r--.config.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/.config.sh b/.config.sh
index 346cb901..e4c5f992 100644
--- a/.config.sh
+++ b/.config.sh
@@ -15,7 +15,8 @@
# Compare your settings here with file .config.mk used by the Makefile targets.
# The public URL of the searx instance: PUBLIC_URL="https://mydomain.xy/searx"
-PUBLIC_URL="${PUBLIC_URL:-http://$(uname -n)/searx}"
+# The default is taken from the Makefile environment (SEARX_URL).
+PUBLIC_URL="${SEARX_URL:-http://$(uname -n)/searx}"
PUBLIC_HOST="${PUBLIC_HOST:-$(echo "$PUBLIC_URL" | sed -e 's/[^/]*\/\/\([^@]*@\)\?\([^:/]*\).*/\2/')}"
# searx.sh
@@ -23,9 +24,10 @@ PUBLIC_HOST="${PUBLIC_HOST:-$(echo "$PUBLIC_URL" | sed -e 's/[^/]*\/\/\([^@]*@\)
SEARX_INTERNAL_URL="${SEARX_INTERNAL_URL:-127.0.0.1:8888}"
-# Only change, if you maintain a searx brand in your searx fork
-SEARX_DOCS_URL="${SEARX_DOCS_URL:-https://asciimoo.github.io/searx}"
-SEARX_GIT_URL="${SEARX_GIT_URL:-https://github.com/asciimoo/searx.git}"
+# Only change, if you maintain a searx brand in your searx fork. The default is
+# taken from the Makefile environment (DOCS_URL, GIT_URL).
+SEARX_DOCS_URL="${DOCS_URL:-https://asciimoo.github.io/searx}"
+SEARX_GIT_URL="${GIT_URL:-https://github.com/asciimoo/searx.git}"
SEARX_GIT_BRANCH="${SEARX_GIT_BRANCH:-master}"
# filtron.sh