Skip to content

Commit

Permalink
Docker: add env var for Gunicorn forwarded-allow-ips
Browse files Browse the repository at this point in the history
  • Loading branch information
lujoga committed Dec 17, 2023
1 parent 1859b1c commit bc79de1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deployment/docker/pretalx.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export HOME=/pretalx
export GUNICORN_WORKERS="${GUNICORN_WORKERS:-${WEB_CONCURRENCY:-$((2 * $(nproc)))}}"
export GUNICORN_MAX_REQUESTS="${GUNICORN_MAX_REQUESTS:-1200}"
export GUNICORN_MAX_REQUESTS_JITTER="${GUNICORN_MAX_REQUESTS_JITTER:-50}"
export GUNICORN_FORWARDED_ALLOW_IPS="${FORWARDED_ALLOW_IPS:-127.0.0.1}"

AUTOMIGRATE="${AUTOMIGRATE:-yes}"

Expand Down Expand Up @@ -36,6 +37,7 @@ if [ "$1" == "webworker" ]; then
--workers "${GUNICORN_WORKERS}" \
--max-requests "${GUNICORN_MAX_REQUESTS}" \
--max-requests-jitter "${GUNICORN_MAX_REQUESTS_JITTER}" \
--forwarded-allow-ips "${GUNICORN_FORWARDED_ALLOW_IPS}" \
--log-level=info \
--bind=0.0.0.0:80
fi
Expand Down

0 comments on commit bc79de1

Please sign in to comment.