Skip to content

Commit

Permalink
peertube: 6.0.4 -> 6.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
liberodark committed Nov 21, 2024
1 parent 1784028 commit 9398820
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
26 changes: 14 additions & 12 deletions nixos/modules/services/web-apps/peertube.nix
Original file line number Diff line number Diff line change
Expand Up @@ -510,10 +510,20 @@ in {
'' + nginxCommonHeaders;
};

locations."~ ^/api/v1/users/[^/]+/imports/import-resumable$" = {
tryFiles = "/dev/null @api";
priority = 1130;

extraConfig = ''
client_max_body_size 0;
proxy_request_buffering off;
'' + nginxCommonHeaders;
};

locations."~ ^/api/v1/videos/(upload|([^/]+/studio/edit))$" = {
tryFiles = "/dev/null @api";
root = cfg.settings.storage.tmp;
priority = 1130;
priority = 1140;

extraConfig = ''
limit_except POST HEAD { deny all; }
Expand All @@ -526,7 +536,7 @@ in {
locations."~ ^/api/v1/runners/jobs/[^/]+/(update|success)$" = {
tryFiles = "/dev/null @api";
root = cfg.settings.storage.tmp;
priority = 1135;
priority = 1150;

extraConfig = ''
client_max_body_size 12G;
Expand All @@ -536,7 +546,7 @@ in {

locations."~ ^/api/v1/(videos|video-playlists|video-channels|users/me)" = {
tryFiles = "/dev/null @api";
priority = 1140;
priority = 1160;

extraConfig = ''
client_max_body_size 6M;
Expand All @@ -546,7 +556,7 @@ in {

locations."@api" = {
proxyPass = "http://peertube";
priority = 1150;
priority = 1170;

extraConfig = ''
proxy_set_header Host $host;
Expand Down Expand Up @@ -684,8 +694,6 @@ in {
if ($request_method = 'GET') {
${nginxCommonHeaders}
${nginxCommonHeadersExtra}
access_log off;
}
aio threads;
Expand Down Expand Up @@ -721,8 +729,6 @@ in {
if ($request_method = 'GET') {
${nginxCommonHeaders}
${nginxCommonHeadersExtra}
access_log off;
}
aio threads;
Expand Down Expand Up @@ -758,8 +764,6 @@ in {
if ($request_method = 'GET') {
${nginxCommonHeaders}
${nginxCommonHeadersExtra}
access_log off;
}
aio threads;
Expand Down Expand Up @@ -795,8 +799,6 @@ in {
if ($request_method = 'GET') {
${nginxCommonHeaders}
${nginxCommonHeadersExtra}
access_log off;
}
aio threads;
Expand Down
14 changes: 7 additions & 7 deletions pkgs/servers/peertube/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,33 +46,33 @@ let
in
stdenv.mkDerivation rec {
pname = "peertube";
version = "6.0.4";
version = "6.3.3";

src = fetchFromGitHub {
owner = "Chocobozzz";
repo = "PeerTube";
rev = "v${version}";
hash = "sha256-FxXIvibwdRcv8OaTQEXiM6CvWOIptfQXDQ1/PW910wg=";
rev = "refs/tags/v${version}";
hash = "sha256-kPZcCJtnoqE1g0fAuM98IhuDy1E9QBDkFNWrWIpFIDA=";
};

yarnOfflineCacheServer = fetchYarnDeps {
yarnLock = "${src}/yarn.lock";
hash = "sha256-RJX92EgEIXWB1wNFRl8FvseOqBT+7m6gs+pMyoodruk=";
hash = "sha256-I6TC5KO+NQ0NAtoJzYQPLelp8/hYUtIeof+UI45qpdk=";
};

yarnOfflineCacheClient = fetchYarnDeps {
yarnLock = "${src}/client/yarn.lock";
hash = "sha256-vr9xn5NXwiUS59Kgl8olCtkMgxnI1TKQzibKbb8RNXA=";
hash = "sha256-ADck9+5TDZ3OGInZ+NYYpBg9XXHugtiwyxYCYqSIOzM=";
};

yarnOfflineCacheAppsCli = fetchYarnDeps {
yarnLock = "${src}/apps/peertube-cli/yarn.lock";
hash = "sha256-xsB71bnaPn/9/f1KHyU3TTwx+Q+1dLjWmNK2aVJgoRY=";
hash = "sha256-t5MwysPVLbtIfDhvnwWoGocck1ntP8OP9Vf9DF6L7Cg=";
};

yarnOfflineCacheAppsRunner = fetchYarnDeps {
yarnLock = "${src}/apps/peertube-runner/yarn.lock";
hash = "sha256-9w3aLuiLs7SU00YwuE0ixfiD77gCakXT4YeRpfsgGz0=";
hash = "sha256-x5qFCprn8q0xC88HudLV7W53X1Nkbz3F52RMp2PxIu8=";
};

outputs = [ "out" "cli" "runner" ];
Expand Down

0 comments on commit 9398820

Please sign in to comment.