Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase GK timeout #327

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions backend/composer/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import os
# TO REMOVE
import time

from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.template import loader
Expand Down Expand Up @@ -39,6 +41,7 @@ def export(request):
"""
Exporting all connectivity statements that have state NPO Approved
"""
time.sleep(120)
if request.user.is_staff:
# only staff users can export connectivity statements
qs = ConnectivityStatement.objects.filter(state=CSState.NPO_APPROVED)
Expand Down
8 changes: 6 additions & 2 deletions nginx/default.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
upstream composer {
server composer:8000;
server composer:8000;
}

proxy_read_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;

server {
listen 80;

Expand All @@ -10,7 +14,7 @@ server {
# index index.html index.htm;
try_files $uri /index.html;
}

location ~* ^/(admin|api|logged-out|login|composer|complete|disconnect|__debug__)/.*$ {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand Down