Increase maximum size for registry uploads

This commit is contained in:
Greg Hellings
2025-03-01 00:30:49 -06:00
parent a68049f0c9
commit 4f23f0a0a9
3 changed files with 21 additions and 17 deletions
+19 -16
View File
@@ -155,23 +155,26 @@ in
}; };
}; };
nginx.virtualHosts."gitlab.shire-zebra.ts.net" = { nginx = {
listen = [ clientMaxBodySize = "25000m";
{ virtualHosts."gitlab.shire-zebra.ts.net" = {
addr = vpnIp; listen = [
port = registryPort; {
ssl = true; addr = vpnIp;
} port = registryPort;
]; ssl = true;
locations."/" = { }
proxyPass = "http://127.0.0.1:4567/"; ];
recommendedProxySettings = true; locations."/" = {
proxyPass = "http://127.0.0.1:4567/";
recommendedProxySettings = true;
};
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 ;
'';
}; };
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 # Fetch the SSL certificates for nginx to use
+1 -1
View File
@@ -19,7 +19,7 @@ in
target = "https://registry.thehellings.lan:5000"; target = "https://registry.thehellings.lan:5000";
ssl = true; ssl = true;
genAliases = false; genAliases = false;
extraConfig = "client_max_body_size 250m;"; extraConfig = "client_max_body_size 25000m;";
}; };
networking.firewall.allowedTCPPorts = [ sshPort ]; networking.firewall.allowedTCPPorts = [ sshPort ];
+1
View File
@@ -11,6 +11,7 @@ in
services.nginx = { services.nginx = {
enable = true; enable = true;
clientMaxBodySize = "25000m"; # To help with uploading container images
# If there are recommended settings, let's use them! # If there are recommended settings, let's use them!
recommendedGzipSettings = true; recommendedGzipSettings = true;
recommendedOptimisation = true; recommendedOptimisation = true;