From 60cac169c9a030df0ef82aecd5ec7fb7787593a3 Mon Sep 17 00:00:00 2001 From: Erwan Rouchet <rouchet@teklia.com> Date: Wed, 4 Dec 2019 11:56:07 +0000 Subject: [PATCH] Add timeouts on Daphne --- Dockerfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 80dedeaa64..ce22f49792 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,4 +34,14 @@ RUN chown -R ark:teklia /logs # Run with Daphne EXPOSE 80 -CMD ["daphne", "--verbosity=1", "--bind=0.0.0.0", "--port=80", "arkindex.project.asgi:application"] +CMD [ \ + "daphne", \ + "--http-timeout=30", \ + "--websocket_connect_timeout=10", \ + "--websocket_timeout=120", \ + "--ping-timeout=120", \ + "--application-close-timeout=3", \ + "--verbosity=1", \ + "--bind=0.0.0.0", \ + "--port=80", \ + "arkindex.project.asgi:application"] -- GitLab