Increase max upload size for GitLab

Sometimes I upload artifacts that are pretty large. So this changes the
limits in Nginx so that it will accept them.
This commit is contained in:
Greg Hellings
2024-11-18 10:23:08 -06:00
parent eab8da2186
commit 6ed8c36f2d
2 changed files with 8 additions and 6 deletions
+1
View File
@@ -12,6 +12,7 @@ in
extraConfig = ''
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Ssl on;
client_max_body_size 100000m;
'';
};
greg.proxies."registry.thehellings.com" = {
+7 -6
View File
@@ -54,6 +54,7 @@ in
extraConfig = ''
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Ssl on;
client_max_body_size 10000m;
'';
};
in
@@ -123,7 +124,7 @@ in
extraConfig = {
object_store = {
enabled = true;
proxy_download = false; # Tell them to reach out to object storage themselves!
proxy_download = true; # Tell them to reach out to object storage themselves!
connection = {
provider = "AWS";
endpoint = "http://s3.thehellings.lan:9000";
@@ -171,11 +172,11 @@ in
proxyPass = "http://127.0.0.1:5000/";
recommendedProxySettings = true;
};
extraConfig = builtins.concatStringsSep "\n" [
"ssl_certificate /etc/certs/gitlab.shire-zebra.ts.net.crt ;"
"ssl_certificate_key /etc/certs/gitlab.shire-zebra.ts.net.key ;"
"client_max_body_size 250m;"
];
extraConfig = ''
ssl_certificate /etc/certs/gitlab.shire-zebra.ts.net.crt ;
ssl_certificate_key /etc/certs/gitlab.shire-zebra.ts.net.key ;
client_max_body_size 10000m ;
'';
};
# Fetch the SSL certificates for nginx to use