Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix replace file nginx configuration

Chocobozzzdb61334cc3ec
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 18b65ee0e3..d72037bc68 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -35,6 +35,7 @@ We have many important notes in this release. We know it's a pain for sysadmin,
* You must update nginx configuration: https://github.com/Chocobozzz/PeerTube/blob/develop/support/nginx/peertube
* `location ~ ^/static/(thumbnails|avatars)/ {` block must be removed
+ * `location = /api/v1/videos/upload-resumable {` must be updated to `location ~ ^/api/v1/videos/(upload-resumable|([^/]+/source/replace-resumable))$ {`
* `location ~ ^(/static/(webseed|streaming-playlists)/private/)|^/download {` must be updated to `location ~ ^(/static/(webseed|web-videos|streaming-playlists)/private/)|^/download {`
* `location ~ ^/static/(webseed|redundancy|streaming-playlists)/ {` must be updated to `location ~ ^/static/(webseed|web-videos|redundancy|streaming-playlists)/ {`
diff --git a/support/nginx/peertube b/support/nginx/peertube
index 7028566c7f..d5cf89e56c 100644
--- a/support/nginx/peertube
+++ b/support/nginx/peertube
@@ -78,7 +78,7 @@ server {
try_files /dev/null @api;
}
- location = /api/v1/videos/upload-resumable {
+ location ~ ^/api/v1/videos/(upload-resumable|([^/]+/source/replace-resumable))$ {
client_max_body_size 0;
proxy_request_buffering off;