Increase maximum size for registry uploads
This commit is contained in:
@@ -155,7 +155,9 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx.virtualHosts."gitlab.shire-zebra.ts.net" = {
|
nginx = {
|
||||||
|
clientMaxBodySize = "25000m";
|
||||||
|
virtualHosts."gitlab.shire-zebra.ts.net" = {
|
||||||
listen = [
|
listen = [
|
||||||
{
|
{
|
||||||
addr = vpnIp;
|
addr = vpnIp;
|
||||||
@@ -173,6 +175,7 @@ in
|
|||||||
client_max_body_size 10000m ;
|
client_max_body_size 10000m ;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Fetch the SSL certificates for nginx to use
|
# Fetch the SSL certificates for nginx to use
|
||||||
cron = {
|
cron = {
|
||||||
|
|||||||
@@ -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 ];
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user