From f18e43cb7592b016190a9323b96fdd796bc39a91 Mon Sep 17 00:00:00 2001 From: Wilfried BARADAT Date: Mon, 17 Feb 2025 15:32:20 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7(tray)=20increase=20connection=20ti?= =?UTF-8?q?meout=20for=20peertube=20runner=20requests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some requests to the `success` endpoint ends up returning a 504 Timeout, usually for the bigger vod files. The `success` endpoint loads the converted video file and manipulates it, which could be taking some time. Increasing the connection timeout on the Nginx conf to 300s so it does not timeout due to longer files. --- CHANGELOG.md | 4 ++++ src/tray/templates/services/nginx/configs/marsha.conf.j2 | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a997f84310..ac047cd944 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed + +- Increase connection timeout on Nginx for peertube runner success request + ## [5.5.3] - 2025-01-09 ### Fixed diff --git a/src/tray/templates/services/nginx/configs/marsha.conf.j2 b/src/tray/templates/services/nginx/configs/marsha.conf.j2 index 0028188f39..191c33c916 100644 --- a/src/tray/templates/services/nginx/configs/marsha.conf.j2 +++ b/src/tray/templates/services/nginx/configs/marsha.conf.j2 @@ -105,6 +105,11 @@ server { location /api/v1/runners { client_max_body_size 4000m; + + proxy_connect_timeout 300s; + proxy_send_timeout 300s; + proxy_read_timeout 300s; + try_files $uri @proxy_to_marsha_app; }