Skip to content

Commit d82d93c

Browse files
Dev NirwalDev Nirwal
authored andcommitted
Fix: add proxy trust to Gunicorn
1 parent 172dee8 commit d82d93c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ ENV DJANGO_SETTINGS_MODULE="pdf_chat_project.settings"
2929
ENV DATA_DIR="/app/data"
3030

3131
# Command to run the application using Gunicorn
32-
CMD ["sh", "-c", "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn pdf_chat_project.wsgi:application --bind 0.0.0.0:8000 --workers 3"]
32+
CMD ["sh", "-c", "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn pdf_chat_project.wsgi:application --bind 0.0.0.0:8000 --workers 3 --forwarded-allow-ips='*' --access-logfile - --error-logfile -"]

0 commit comments

Comments
 (0)