Skip to content
Snippets Groups Projects
Commit 7e8c9b8f authored by Christoffer Stoll's avatar Christoffer Stoll
Browse files

add: extended timeout for long running requests to 10 min

parent 8b202dbf
No related branches found
No related tags found
No related merge requests found
......@@ -7,4 +7,4 @@ RUN pip install -r requirements.txt
COPY api/ ./
ENV PYTHONUNBUFFERED=1
EXPOSE 5000
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]
\ No newline at end of file
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--timeout", "600", "app:app"]
\ No newline at end of file
......@@ -22,10 +22,10 @@ http {
## SETTINGS ##
keepalive_timeout 5;
client_max_body_size 4G;
# proxy_read_timeout 300;
# proxy_connect_timeout 300;
# proxy_send_timeout 300;
client_max_body_size 4G;
proxy_read_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
## GZIP ##
gzip on;
......@@ -70,12 +70,6 @@ http {
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://api;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment