mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-09 09:52:19 +00:00
1e86345a33
------- * Remove unnecessary packages from dockerfile for the demo-connect proxy. * Rename an environment variable that mentioned Status.im in what is now a generic connector. * Fixed a spelling mistake.
20 lines
607 B
Bash
Executable File
20 lines
607 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
function error_handler() {
|
|
>&2 echo "Exited with BAD EXIT CODE '${2}' in ${0} script at line: ${1}."
|
|
exit "$2"
|
|
}
|
|
trap 'error_handler ${LINENO} $?' ERR
|
|
set -o errtrace -o errexit -o nounset -o pipefail
|
|
|
|
port="${CONNECTOR_PROXY_PORT:-}"
|
|
if [[ -z "$port" ]]; then
|
|
port=7004
|
|
fi
|
|
|
|
workers=3
|
|
|
|
# THIS MUST BE THE LAST COMMAND!
|
|
# default --limit-request-line is 4094. see https://stackoverflow.com/a/66688382/6090676
|
|
exec poetry run gunicorn --bind "0.0.0.0:$port" --workers="$workers" --limit-request-line 8192 --timeout 90 --capture-output --access-logfile '-' --log-level debug app:app
|