Skip to content

Commit

Permalink
Pass through some proxy related headers to Django
Browse files Browse the repository at this point in the history
This is very useful for allowing users to auto-signin based on headers. Removes the run hack needed here: babybuddy/babybuddy#643 (comment)
  • Loading branch information
LukasdeBoer authored Dec 31, 2024
1 parent 488216f commit 8a94430
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/svc-babybuddy/run
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ export \
ALLOWED_HOSTS="${ALLOWED_HOSTS:-*}" \
TIME_ZONE="${TZ:-UTC}" \
DEBUG="${DEBUG:-False}" \
SECRET_KEY="${SECRET_KEY:-$(cat /config/.secretkey)}"
SECRET_KEY="${SECRET_KEY:-$(cat /config/.secretkey)}" \
REVERSE_PROXY_AUTH=${REVERSE_PROXY_AUTH:-False} \
PROXY_HEADER=${PROXY_HEADER:-""}

exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 3000" \
Expand Down

0 comments on commit 8a94430

Please sign in to comment.