Fix pushing to GitLab registry

This commit is contained in:
Greg Hellings
2025-06-13 02:37:42 -05:00
parent 61c921cd91
commit aa3953a8b0
+41 -23
View File
@@ -169,30 +169,48 @@ in
nginx = { nginx = {
enable = true; enable = true;
clientMaxBodySize = "25000m"; clientMaxBodySize = "10000m"; # 10 GB is fine, right?
virtualHosts."vm-gitlab.shire-zebra.ts.net" = { virtualHosts = {
listen = [ "vm-gitlab.shire-zebra.ts.net" = {
{ listen = [
addr = "0.0.0.0"; {
port = registryPort; addr = "0.0.0.0";
ssl = true; port = 443;
} ssl = true;
{ }
addr = "0.0.0.0"; ];
port = 443; locations."/" = {
ssl = true; proxyPass = "http://unix:/run/gitlab/gitlab-workhorse.socket";
} recommendedProxySettings = true;
]; };
locations."/" = { locations."/v2" = {
proxyPass = "http://unix:/run/gitlab/gitlab-workhorse.socket"; proxyPass = "http://127.0.0.1:4567/";
#proxyPass = "http://127.0.0.1:4567/"; recommendedProxySettings = true;
recommendedProxySettings = true; };
extraConfig = ''
ssl_certificate /etc/certs/vm-gitlab.shire-zebra.ts.net.crt ;
ssl_certificate_key /etc/certs/vm-gitlab.shire-zebra.ts.net.key ;
client_max_body_size 10000m ;
'';
};
"registry" = {
listen = [
{
addr = "0.0.0.0";
port = registryPort;
ssl = true;
}
];
locations."/" = {
proxyPass = "http://127.0.0.1:4567/";
recommendedProxySettings = true;
};
extraConfig = ''
ssl_certificate /etc/certs/vm-gitlab.shire-zebra.ts.net.crt ;
ssl_certificate_key /etc/certs/vm-gitlab.shire-zebra.ts.net.key ;
client_max_body_size 10000m ;
'';
}; };
extraConfig = ''
ssl_certificate /etc/certs/vm-gitlab.shire-zebra.ts.net.crt ;
ssl_certificate_key /etc/certs/vm-gitlab.shire-zebra.ts.net.key ;
client_max_body_size 10000m ;
'';
}; };
}; };