summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-07-23 23:09:54 +0200
committerlassulus <git@lassul.us>2023-07-23 23:09:54 +0200
commit9c35e8da105f19690d832453c40984865c0ff110 (patch)
treecbe1a74555594c96c04e16eb1c0c6b12b4934821 /lass
parent210ef5ac52c49eede09e557721b235b54cd3532c (diff)
l git: allow bigger payload in proxy_pass
Diffstat (limited to 'lass')
-rw-r--r--lass/2configs/services/git/default.nix10
-rw-r--r--lass/2configs/services/git/proxy.nix10
2 files changed, 20 insertions, 0 deletions
diff --git a/lass/2configs/services/git/default.nix b/lass/2configs/services/git/default.nix
index 096f73c03..2b68905ed 100644
--- a/lass/2configs/services/git/default.nix
+++ b/lass/2configs/services/git/default.nix
@@ -7,5 +7,15 @@
enableACME = true;
addSSL = true;
locations = config.services.nginx.virtualHosts.cgit.locations;
+ extraConfig = ''
+ client_max_body_size 300M;
+ client_body_timeout 2024;
+ client_header_timeout 2024;
+
+ fastcgi_buffers 16 512k;
+ fastcgi_buffer_size 512k;
+ fastcgi_read_timeout 500;
+ fastcgi_send_timeout 500;
+ '';
};
}
diff --git a/lass/2configs/services/git/proxy.nix b/lass/2configs/services/git/proxy.nix
index cb05c3f6c..9875898ea 100644
--- a/lass/2configs/services/git/proxy.nix
+++ b/lass/2configs/services/git/proxy.nix
@@ -9,5 +9,15 @@
proxyWebsockets = true;
recommendedProxySettings = true;
};
+ extraConfig = ''
+ client_max_body_size 300M;
+ client_body_timeout 2024;
+ client_header_timeout 2024;
+
+ fastcgi_buffers 16 512k;
+ fastcgi_buffer_size 512k;
+ fastcgi_read_timeout 500;
+ fastcgi_send_timeout 500;
+ '';
};
}