-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
peertube: 6.0.4 -> 6.3.3 #357414
Conversation
c05fb40
to
a51c5ba
Compare
52544b5
to
68aa4e0
Compare
68aa4e0
to
d16478d
Compare
|
No update nginx configuration? |
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;
|
d16478d
to
9398820
Compare
Can we not change the formatting? |
I prefer it to be formatted via nixfmt I find it more readable and cleaner. |
I on the contrary find it uncomfortable to read with this formatting :( |
Okay, I can cancel it. |
Thanks! |
9398820
to
b87e09c
Compare
There was a problem hiding this 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.
New PR : #358194 |
Fix : #357286
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.