Allow forwarding IPs

This commit is contained in:
Nexus 2024-04-17 16:40:11 +01:00
parent a55db863b0
commit 3257734b0d
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -4,5 +4,4 @@ WORKDIR /app
COPY ipserv.py /app
EXPOSE 8000
RUN pip install flask requests gunicorn
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0", "ipserv:app"]
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0", "--forwarded-allow-ips", "*", "ipserv:app"]