Skip to content

Commit

Permalink
🔧(tray) increase connection timeout for peertube runner requests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wilbrdt committed Feb 17, 2025
1 parent e08df05 commit f18e43c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions src/tray/templates/services/nginx/configs/marsha.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f18e43c

Please sign in to comment.