Skip to content

Commit 6454ef8

Browse files
committed
increase timeouts for big snapshots
1 parent 344a473 commit 6454ef8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

django/gsmap/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def create_screenshot_file(self, is_thumbnail=False):
193193
if is_thumbnail:
194194
url += '&thumbnail'
195195
path = 'snapshot-thumbnails'
196-
response = requests.get(url, timeout=(10, 50))
196+
response = requests.get(url, timeout=(10, 300))
197197
date_suffix = timezone.now().strftime("%Y-%m-%d_%H-%M-%SZ")
198198
screenshot_file = SimpleUploadedFile(
199199
f'{path}/{self.pk}_{date_suffix}.png',

etc/nginx/proxy_conf.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22
proxy_set_header X-Real-IP $remote_addr;
33
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
44
proxy_set_header X-Forwarded-Proto $scheme;
5+
proxy_connect_timeout 600s;
6+
proxy_send_timeout 600s;
7+
proxy_read_timeout 600s;
8+
send_timeout 600s;
59
proxy_redirect off;

0 commit comments

Comments
 (0)