forked from zaclys/searxng
Allow overriding env vars SEARX_SETTINGS_PATH,UWSGI_SETTINGS_PATH
This commit is contained in:
parent
547478089f
commit
0fb423ea59
|
@ -14,7 +14,9 @@ ENV INSTANCE_NAME=searx \
|
||||||
AUTOCOMPLETE= \
|
AUTOCOMPLETE= \
|
||||||
BASE_URL= \
|
BASE_URL= \
|
||||||
MORTY_KEY= \
|
MORTY_KEY= \
|
||||||
MORTY_URL=
|
MORTY_URL= \
|
||||||
|
SEARX_SETTINGS_PATH=/etc/searx/settings.yml \
|
||||||
|
UWSGI_SETTINGS_PATH=/etc/searx/uwsgi.ini
|
||||||
|
|
||||||
WORKDIR /usr/local/searx
|
WORKDIR /usr/local/searx
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,6 @@ if [ -z "${BIND_ADDRESS}" ]; then
|
||||||
export BIND_ADDRESS="${DEFAULT_BIND_ADDRESS}"
|
export BIND_ADDRESS="${DEFAULT_BIND_ADDRESS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export UWSGI_SETTINGS_PATH=/etc/searx/uwsgi.ini
|
|
||||||
export SEARX_SETTINGS_PATH=/etc/searx/settings.yml
|
|
||||||
|
|
||||||
# Parse special command line
|
# Parse special command line
|
||||||
# see docs/admin/installation-docker.rst
|
# see docs/admin/installation-docker.rst
|
||||||
# display the help message without the version
|
# display the help message without the version
|
||||||
|
|
|
@ -35,7 +35,7 @@ SERVICE_GROUP="${SERVICE_USER}"
|
||||||
GIT_BRANCH="${GIT_BRANCH:-master}"
|
GIT_BRANCH="${GIT_BRANCH:-master}"
|
||||||
SEARX_PYENV="${SERVICE_HOME}/searx-pyenv"
|
SEARX_PYENV="${SERVICE_HOME}/searx-pyenv"
|
||||||
SEARX_SRC="${SERVICE_HOME}/searx-src"
|
SEARX_SRC="${SERVICE_HOME}/searx-src"
|
||||||
SEARX_SETTINGS_PATH="/etc/searx/settings.yml"
|
SEARX_SETTINGS_PATH="${SEARX_SETTINGS_PATH:-/etc/searx/settings.yml}"
|
||||||
SEARX_SETTINGS_TEMPLATE="${SEARX_SETTINGS_TEMPLATE:-${REPO_ROOT}/utils/templates/etc/searx/use_default_settings.yml}"
|
SEARX_SETTINGS_TEMPLATE="${SEARX_SETTINGS_TEMPLATE:-${REPO_ROOT}/utils/templates/etc/searx/use_default_settings.yml}"
|
||||||
SEARX_UWSGI_APP="searx.ini"
|
SEARX_UWSGI_APP="searx.ini"
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
|
|
Loading…
Reference in New Issue