Initial update

This commit is contained in:
Ivan Gabaldon 2025-03-30 13:39:29 +02:00
parent 33661cc5c3
commit f105cbc357
No known key found for this signature in database
GPG Key ID: 075587C93FA67582
3 changed files with 6 additions and 6 deletions

View File

@ -12,6 +12,7 @@ RUN addgroup -g ${SEARXNG_GID} searxng && \
ENV INSTANCE_NAME=searxng \
AUTOCOMPLETE= \
BASE_URL= \
BIND_ADDRESS=[::]:8080 \
MORTY_KEY= \
MORTY_URL= \
SEARXNG_SETTINGS_PATH=/etc/searxng/settings.yml \

View File

@ -14,8 +14,6 @@ Environment variables:
BASE_URL settings.yml : server.base_url
MORTY_URL settings.yml : result_proxy.url
MORTY_KEY settings.yml : result_proxy.key
BIND_ADDRESS uwsgi bind to the specified TCP socket using HTTP protocol.
Default value: ${DEFAULT_BIND_ADDRESS}
Volume:
/etc/searxng the docker entry point copies settings.yml and uwsgi.ini in
this directory (see the -f command line option)"
@ -23,9 +21,6 @@ Volume:
EOF
}
export DEFAULT_BIND_ADDRESS="[::]:8080"
export BIND_ADDRESS="${BIND_ADDRESS:-${DEFAULT_BIND_ADDRESS}}"
# Parse command line
FORCE_CONF_UPDATE=0
DRY_RUN=0
@ -175,4 +170,4 @@ unset MORTY_KEY
# Start uwsgi
printf 'Listen on %s\n' "${BIND_ADDRESS}"
exec uwsgi --master --uid searxng --gid searxng --http-socket "${BIND_ADDRESS}" "${UWSGI_SETTINGS_PATH}"
exec uwsgi "${UWSGI_SETTINGS_PATH}"

View File

@ -1,4 +1,8 @@
[uwsgi]
# Listening address
# default value: [::]:8080 (see Dockerfile)
http-socket = $(BIND_ADDRESS)
# Who will run the code
uid = searxng
gid = searxng