diff --git a/hosts/isaiah/container-git.nix b/hosts/isaiah/container-git.nix index b4735c4..b6a77cb 100644 --- a/hosts/isaiah/container-git.nix +++ b/hosts/isaiah/container-git.nix @@ -155,23 +155,26 @@ in }; }; - nginx.virtualHosts."gitlab.shire-zebra.ts.net" = { - listen = [ - { - addr = vpnIp; - port = registryPort; - ssl = true; - } - ]; - locations."/" = { - proxyPass = "http://127.0.0.1:4567/"; - recommendedProxySettings = true; + nginx = { + clientMaxBodySize = "25000m"; + virtualHosts."gitlab.shire-zebra.ts.net" = { + listen = [ + { + addr = vpnIp; + port = registryPort; + ssl = 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 diff --git a/hosts/linode/git.nix b/hosts/linode/git.nix index bee496a..fdb2b41 100644 --- a/hosts/linode/git.nix +++ b/hosts/linode/git.nix @@ -19,7 +19,7 @@ in target = "https://registry.thehellings.lan:5000"; ssl = true; genAliases = false; - extraConfig = "client_max_body_size 250m;"; + extraConfig = "client_max_body_size 25000m;"; }; networking.firewall.allowedTCPPorts = [ sshPort ]; diff --git a/hosts/linode/nginx.nix b/hosts/linode/nginx.nix index 561d9e9..b64db56 100644 --- a/hosts/linode/nginx.nix +++ b/hosts/linode/nginx.nix @@ -11,6 +11,7 @@ in services.nginx = { enable = true; + clientMaxBodySize = "25000m"; # To help with uploading container images # If there are recommended settings, let's use them! recommendedGzipSettings = true; recommendedOptimisation = true;