Commit 056c3875 authored by Morten Brekkevold's avatar Morten Brekkevold
Browse files

Use custom access log format

There's no point in logging the internal IP address of the K8s cluster
proxies, we want to log the "forwarded-for" header so we can see who the
real-world client is.
parent c31c0b2a
......@@ -7,4 +7,11 @@ RUN mkdir /app
COPY /app/
CMD ["gunicorn", "--log-level=debug", "--access-logfile", "-", "--bind", "", "mist_argus.webhook:app"]
CMD [ \
"gunicorn", \
"--log-level=debug", \
"--access-logfile", "-", \
"--access-logformat", "%({x-forwarded-for}i)s %(l)s %(u)s %(t)s \"%(r)s\" %(s)s %(b)s \"%(f)s\" \"%(a)s\"", \
"--bind", "", \
"mist_argus.webhook:app" \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment