mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 02:22:22 +02:00
Don't hardcode uWSGI parameters (#4578)
* Initial update * fix * add todo note
This commit is contained in:
parent
59228fb1db
commit
9424bac031
3 changed files with 9 additions and 7 deletions
|
@ -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
|
||||
|
@ -173,6 +168,8 @@ fi
|
|||
|
||||
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}"
|
||||
|
||||
# Start uwsgi
|
||||
# TODO: "--http-socket" will be removed in the future (see uwsgi.ini.new config file): https://github.com/searxng/searxng/pull/4578
|
||||
exec uwsgi --http-socket "${BIND_ADDRESS}" "${UWSGI_SETTINGS_PATH}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue