Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

peertube: 6.0.4 -> 6.3.3 #357414

Closed
wants to merge 1 commit into from
Closed

Conversation

liberodark
Copy link
Contributor

@liberodark liberodark commented Nov 19, 2024

Fix : #357286

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@liberodark liberodark force-pushed the peertube_6.3.3 branch 2 times, most recently from c05fb40 to a51c5ba Compare November 19, 2024 22:33
@liberodark
Copy link
Contributor Author

liberodark commented Nov 19, 2024

@ofborg build peertube

@ofborg test peertube

@liberodark liberodark force-pushed the peertube_6.3.3 branch 2 times, most recently from 52544b5 to 68aa4e0 Compare November 20, 2024 16:14
@liberodark liberodark marked this pull request as ready for review November 20, 2024 16:17
@GaetanLepage
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 357414


x86_64-linux

✅ 3 packages built:
  • peertube
  • peertube.cli
  • peertube.runner

aarch64-linux

✅ 3 packages built:
  • peertube
  • peertube.cli
  • peertube.runner

x86_64-darwin

❌ 3 packages failed to build:
  • peertube
  • peertube.cli
  • peertube.runner

aarch64-darwin

❌ 3 packages failed to build:
  • peertube
  • peertube.cli
  • peertube.runner

@Izorkin
Copy link
Contributor

Izorkin commented Nov 21, 2024

No update nginx configuration?

@Izorkin
Copy link
Contributor

Izorkin commented Nov 21, 2024

Patch:

diff --git a/nixos/modules/services/web-apps/peertube.nix b/nixos/modules/services/web-apps/peertube.nix
index e3f15f4f438c..86e8403a8008 100644
--- a/nixos/modules/services/web-apps/peertube.nix
+++ b/nixos/modules/services/web-apps/peertube.nix
@@ -511,10 +511,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; }
@@ -527,7 +537,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;
@@ -537,7 +547,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;
@@ -547,7 +557,7 @@ in {

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

           extraConfig = ''
             proxy_set_header Host $host;
@@ -685,8 +695,6 @@ in {
             if ($request_method = 'GET') {
               ${nginxCommonHeaders}
               ${nginxCommonHeadersExtra}
-
-              access_log off;
             }

             aio threads;
@@ -722,8 +730,6 @@ in {
             if ($request_method = 'GET') {
               ${nginxCommonHeaders}
               ${nginxCommonHeadersExtra}
-
-              access_log off;
             }

             aio threads;
@@ -759,8 +765,6 @@ in {
             if ($request_method = 'GET') {
               ${nginxCommonHeaders}
               ${nginxCommonHeadersExtra}
-
-              access_log off;
             }

             aio threads;
@@ -796,8 +800,6 @@ in {
             if ($request_method = 'GET') {
               ${nginxCommonHeaders}
               ${nginxCommonHeadersExtra}
-
-              access_log off;
             }

             aio threads;

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Nov 21, 2024
@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Nov 22, 2024
@ofborg ofborg bot requested a review from Izorkin November 22, 2024 11:29
@Izorkin
Copy link
Contributor

Izorkin commented Nov 22, 2024

Can we not change the formatting?

@liberodark
Copy link
Contributor Author

I prefer it to be formatted via nixfmt I find it more readable and cleaner.

@Izorkin
Copy link
Contributor

Izorkin commented Nov 22, 2024

I on the contrary find it uncomfortable to read with this formatting :(

@liberodark
Copy link
Contributor Author

Okay, I can cancel it.

@Izorkin
Copy link
Contributor

Izorkin commented Nov 22, 2024

Thanks!

@github-actions github-actions bot removed 6.topic: TeX Issues regarding texlive and TeX in general 6.topic: testing Tooling for automated testing of packages and modules 6.topic: cinnamon Desktop environment 6.topic: module system About "NixOS" module system internals 6.topic: jitsi 6.topic: systemd 6.topic: agda "A dependently typed programming language / interactive theorem prover" 6.topic: java Including JDK, tooling, other languages, other VMs 6.topic: nim Nim programing language 6.topic: LXQt The Lightweight Qt Desktop Environment 6.topic: Lumina DE The Lumina Desktop Environment 6.topic: Enlightenment DE The Enlightenment Desktop Environment 6.topic: mate The MATE Desktop Environment 6.topic: flakes The experimental Nix feature 6.topic: lib The Nixpkgs function library 6.topic: zig 6.topic: jupyter Interactive computing tooling: kernels, notebook, jupyterlab 6.topic: julia 6.topic: php 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 6.topic: k3s Kubernates distribution (https://k3s.io/) 6.topic: deepin Desktop environment and its components 6.topic: dotnet Language: .NET 6.topic: nvidia 6.topic: xen-project The Xen Project hypervisor 6.topic: tcl 6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions labels Nov 22, 2024
@liberodark liberodark closed this Nov 22, 2024
Copy link
Contributor

@drupol drupol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. Please update the hash.

@liberodark
Copy link
Contributor Author

New PR : #358194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update request: peertube 6.0.4 → 6.3.3
5 participants